Skip to content

post method headers #184

@amirabbasTehrani

Description

@amirabbasTehrani

Hi, I cant use headers for my post request and there is no example for setting headers.

Here is what I wanted to operate:

async asyncData ({ $http }) {
const value= await $http.$post('https://example.com', '{"someBody":[someValue]}', {
headers: {
'content-type': 'application/json;charset=UTF-8'
}
})
return { value}
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions