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

Cannot send cookies through server side #585

Open
dartilesm opened this issue Aug 18, 2022 · 0 comments
Open

Cannot send cookies through server side #585

dartilesm opened this issue Aug 18, 2022 · 0 comments

Comments

@dartilesm
Copy link

Description

I have an application with Nuxt and cookie-based authentication. My problem is, that cookies are not sent from the server side, that's why the user info is lost. I saw many people reporting the same issue on the internet, but I don't know if it's totally impossible to make it work or if there is a workaround to solve it.

The session is managed by the Django application, so I want to send the cookies from the server side (Nuxt) to Django to keep the session.

I tried a lot of things, updating or downgrading the version of Axios but I still don't make it works.

I can not show the code because it's from my company, but, I'll try to make an example, if I get that I'll show you

Expected Behavior

Keep the session info on both sides (client and server)

Current Behavior

The session is lost on the server side or the cookies are not sent from the server side.

Failure Information (for bugs)

I could notice the headers are not sending even if I put it on manually

Context

  • Nuxt: 2.15.0
  • @nuxtjs/axios: 5.12.1
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