Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Can't get this to work on an Azure web app #111

Open
p-diogo opened this issue Oct 30, 2015 · 0 comments
Open

Can't get this to work on an Azure web app #111

p-diogo opened this issue Oct 30, 2015 · 0 comments

Comments

@p-diogo
Copy link

p-diogo commented Oct 30, 2015

Hello everybody.

So, I have two servers: one serving as a web server/RESTful API and another endpoint which is a socket.io server. The first serves an AngularJS app which connects to the second server. I have CORS enabled, and it works fine on localhost as I send out the session id via socket.io query param. However, it does not on the Azure environment.

From what I could debug, Azure has a IIS behind these web apps and so it messes up all the HTTP Headers. Could that be the reason why it fails to find a session? Please note that it does connect to the server - it is just not able to retrieve the session. I am pretty sure the session_id is being sent correctly as the code works flawlessly when connecting to localhost.

One interesting fact: when testing on my own machine, I must explicitly connect to 127.0.0.1 and not 'localhost', otherwise it fails to retrieve the session data. Weird, hun? Might that be the reason why It does not work on Azure's environment?

Please help!

Pedro

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

No branches or pull requests

1 participant