Logging in with a session


#1

localhost:4200 is where ember-cli hosts it’s development server. However, if your server is on a different website say port 80, the cookies/login never seem to work, for me at least. It’s always logged out. I’m talking about Wordpress login’s in particular here.

Does anyone have a tried and tested way around this that they use.


#2

Use a reverse proxy like nginx OR have wordpress serve the index.html from disk.


#3

If nerdyworm’s suggestion didn’t help, would you mind explaining the setup a bit more?


#4

You could try using ember server proxy… type this into your terminal;

ember server --proxy http://localhost:80


#5

Two servers can’t use the same port I reckon