cors-anywhere
cors-anywhere copied to clipboard
Has anyone gotten this working on Microsoft Azure? If so what ports should we be listening on and what headers should we remove?
Wondering also... Just installed it on Azure and I get a 500 error...
I got it finally working. Azure was selecting a very old node version... However I still have a minor issue (SO link). This requests creates error 500 and no error appears in the logs:
https://myserver.azurewebsites.net/http://www.remoteserver.com/query=john
This one runs fine:
https://myserver.azurewebsites.net/www.remoteserver.com/query=john
@cadilhac Your question on SO has been answered, so I will add another note: you were using CORS Anywhere on a Windows server, where :
is disallowed by default in a path name (this is probably a mitigation to avoid vulnerabilities surrounding alternate data streams, CVE-1999-0278). The recommended solution is to run CORS Anywhere on Linux (or if you want to stick to Windows+IIS, allow :
in IIS, but after doing so, verify that you aren't introducing a security vulnerability by doing so).
Lastly, note that omitting "http://" is not equivalent to http:
. If the scheme is not specified, CORS Anywhere will default to the scheme that was used for the original request, https
in the case of https://myserver.azurewebsites.net/www.remoteserver.com/query=john
Thanks Rob.
And if my web site is http, but I use
http://myserver.azurewebsites.net/www.remoteserver.com:443/query=john
it will do the trick, right?
Yes. But there is a colon in your URL again.
Yes, but strangely, it works. Are you sure this is not ':/' that is forbidden?
I built a docker container with nothing except cors-anywhere, using node 10.14.2 as base. I run that locally and it works as expected.
I then upload that docker container to a container registry, ask Azure to Webapp (linux based) to use that container. It deployed successfully and seems to be running. However, when it tried to serve any request, it always return 404. Looks like it is Azure outbound network issue.....Any suggestion on how to get this fixed? Thank you
Please look at the PR if you want to deploy this to Azure. This patch will make it work there
#146
Has anybody got this to work in Azure yet? I have the same issue.
Has anybody got this to work in Azure yet? I have the same issue.
my PR was rejected. However you are welcome to look at my change and fork your own branch...
https://github.com/Rob--W/cors-anywhere/pull/146/commits/049bb95ec578c3d80d8cc72ca4fbd556f74808ce