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

attaching auth headers #171

Closed
hdrodel opened this issue Feb 22, 2021 · 1 comment
Closed

attaching auth headers #171

hdrodel opened this issue Feb 22, 2021 · 1 comment

Comments

@hdrodel
Copy link

hdrodel commented Feb 22, 2021

i need to attach auth headers to the requetsts. Currently i'm using
getSaveHeaders() { return { Authorization: localStorage.token, }; }

That seems to work but not for DELETE requests. is there any way of adding them without overwriting the delete method?

@hdrodel
Copy link
Author

hdrodel commented Feb 24, 2021

I found out that using getDefaultHeaders() they also work for delete. May I suggest adding a small paragraph about that to the docs at https://vuemc.io/ ?

@hdrodel hdrodel closed this as completed Feb 24, 2021
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