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

settings headers in nuxt.config.js doesn't actually add the headers you set #323

Closed
meatherly opened this issue Jan 10, 2020 · 2 comments · Fixed by titonobre/fanweekend.pt#17 or titonobre/fanweekend.pt#19

Comments

@meatherly
Copy link

Version

v5.9.0

Reproduction link

https://github.com/meatherly/nuxtjs-axios-bug

Steps to reproduce

Set the common headers in the nuxt.config.js for the axios module. Then make a request with the axios module.

What is expected ?

It should merge the headers you add to the config with the default like the documentation says.

What is actually happening?

The headers are not changing.

Additional comments?

I've created a example repo to recreate the bug.

  • Start up the project.
  • Load the index page.
  • Inspect the request to https://jsonplaceholder.typicode.com/posts/1 in the dev tools.

You should see that the common header set in nuxt.config.js is missing from the request when it shouldn't be.

This bug report is available on Nuxt community (#c318)
@ghost ghost added the cmty:bug-report label Jan 10, 2020
@MLDMoritz
Copy link

Probably duplicate of #311

@pi0 pi0 closed this as completed in 6c5605d Apr 21, 2020
@pi0
Copy link
Member

pi0 commented Apr 21, 2020

Thanks for report @meatherly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants