lol browser requests github repo via cors proxy (via npm, run with ./cors_proxy.sh) but then stack overflows
This commit is contained in:
7
cors_proxy.sh
Executable file
7
cors_proxy.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
if [ ! -f /tmp/key.pem ]; then
|
||||
echo Creating key
|
||||
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout /tmp/key.pem -out /tmp/cert.pem -batch
|
||||
fi
|
||||
|
||||
npx http-server --cors -S -P https://github.com --log-ip -c-1 -C /tmp/cert.pem -K /tmp/key.pem
|
||||
Reference in New Issue
Block a user