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

Set Headers for token #58

Open
matthelosh opened this issue Nov 20, 2017 · 1 comment
Open

Set Headers for token #58

matthelosh opened this issue Nov 20, 2017 · 1 comment

Comments

@matthelosh
Copy link

How to add headers in vue2-autocomplete-js url request

@dmouroutis
Copy link

You can use the "customHeaders" prop and directly include the header json or you can also bind the prop with :customHeaders and call a function (must return obj)

eg.
// example 1 - direct attribute
customHeaders="{ 'Content-Type': 'application/json'}"

// example 2 - bind prop & function usage
:customHeaders="someFunction"

// in vue component methods
someFunction: {
return { 'Content-Type': 'application/json'}
}

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

2 participants