Skip to content
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

Has anyone gotten this working on Microsoft Azure? If so what ports should we be listening on and what headers should we remove? #82

Open
uhlenkott opened this issue Sep 7, 2017 · 10 comments

Comments

@uhlenkott
Copy link

No description provided.

@cadilhac
Copy link

Wondering also... Just installed it on Azure and I get a 500 error...

@cadilhac
Copy link

cadilhac commented Jan 31, 2018

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

@Rob--W
Copy link
Owner

Rob--W commented Feb 4, 2018

@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

@cadilhac
Copy link

cadilhac commented Feb 4, 2018

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?

@Rob--W
Copy link
Owner

Rob--W commented Feb 4, 2018

Yes. But there is a colon in your URL again.

@cadilhac
Copy link

cadilhac commented Feb 4, 2018

Yes, but strangely, it works. Are you sure this is not ':/' that is forbidden?

@chrischip
Copy link

chrischip commented Dec 28, 2018

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

@chrischip
Copy link

Please look at the PR if you want to deploy this to Azure. This patch will make it work there

#146

@jamiemaguiredotnet
Copy link

Has anybody got this to work in Azure yet? I have the same issue.

@chrischip
Copy link

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...

049bb95

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants