Closed darthf1 closed 4 years ago
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. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/http/issues/c23.
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?