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

meatherly opened this issue Jan 10, 2020 — with CMTY · 2 comments · Fixed by titonobre/ or titonobre/


Copy link

meatherly commented Jan 10, 2020



Reproduction link

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 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)
@cmty cmty bot added the cmty:bug-report label Jan 10, 2020
Copy link

MLDMoritz commented Jan 14, 2020

Probably duplicate of #311

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

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
None yet
3 participants