-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CORS to webserver. #147
Comments
Hi @bakon11 Best Regards |
Hi @bakon11 |
Ok I found issue - should be |
Hi,
I currently use the carp webserver server behind a nginx reverse proxy. Due to the fact that express doesn't do well without the CORs package even if specified in the nginx config. I have to add it myself everytime I do a fork sync to a new release.
I was wondering if you guys would be willing to add it, if I submitted a simple PR to include cors in the carp webserver server.
Below are two files where the change would happen,
package.json
to include cors and its types and in theindex.ts
to pull it in and have express recognize it.https://github.com/onchainapps/carp/blob/7c21ca5810fae78bc61492022ff8717feac3fa18/webserver/server/package.json#L43
https://github.com/onchainapps/carp/blob/7c21ca5810fae78bc61492022ff8717feac3fa18/webserver/server/package.json#L47
https://github.com/onchainapps/carp/blob/7c21ca5810fae78bc61492022ff8717feac3fa18/webserver/server/app/index.ts#L11
Thank you.
Mike
The text was updated successfully, but these errors were encountered: