Closed HerrHansen closed 9 years ago
You need to enable cookies to be passed. In a .config block, do the following:
.config(function($httpProvider){ $httpProvider.defaults.withCredentials = true; }
I close this issue to clean up a bit. If you still have an issue, don't hesitate to reopen it.
Hi there,
after a successful login per HTTP, I'm trying to get current user per HTTP in AngularJS.
Trying this, response an empty string, NO error:
What did I miss with the Cookie instructions in docs?
I see a Cookie under my chrome dev tool named 'sid' allways new with a refresh of login view. But I can't access to it with Angular's $cookieStore.get('sid')?
Question: Is it necessary to include the Cookie manually like the Deployd DOCs say it, or did I misread it?
… if so, how should I include the current Cookie to the GET?
Thank you very very much.
P.S. Deployd is a great tool, thank you very much for this great work!