-
Notifications
You must be signed in to change notification settings - Fork 51
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
Globally set options.Credentials #92
Comments
This issue as been imported as question since it does not respect http issue template. Only bug reports and feature requests stays open to reduce maintainers workload. |
Did you find solution? I need this too. |
No solution unfortunately |
You may create a plugin and add the following: export default ( { $http } ) => {
$http._defaults.credentials = 'include';
} |
+1 for the comment above, and don't forget to add plugin to the nuxt.config.js |
Hi. Is there a way to globally set
options.credentials = 'include'
? I tried with theonRequest
hook but then I get a TS error.If I add a
// @ts-ignore
on this error, the request won't be made. If I remove the code all together, the request is made.Is there another way to set this globally instead of every request?
The text was updated successfully, but these errors were encountered: