lol browser requests github repo via cors proxy (via npm, run with ./cors_proxy.sh) but then stack overflows

This commit is contained in:
cqc
2022-11-08 22:06:58 -06:00
parent 3b09bb1c11
commit 3fc8125d42
4 changed files with 425 additions and 11 deletions

7
cors_proxy.sh Executable file
View 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