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

Nodejs + J-toker + Mithril js + rails #30

Open
nandhini-ramanujam opened this issue Feb 4, 2017 · 0 comments
Open

Nodejs + J-toker + Mithril js + rails #30

nandhini-ramanujam opened this issue Feb 4, 2017 · 0 comments

Comments

@nandhini-ramanujam
Copy link

Hi,
I am using server side rendering with nodejs. After successful login(From Client side) , I can see Auth.user in the browser console. But if I redirect to any other page by manually typing the url in the address bar, headers are not getting passed to my rails api. In node , app.get , If I print the request.headers, only cookie values are displaying, AuthHeaders not getting passed. Do I need to manually send these headers to each request to rails API ?. then how can i retrieve that from the cookie alone? . If I include Auth in nodejs, then getting error "$.extend is not a function"

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

1 participant