Skip to content

Issue to send token in header #8

@Ankitkhatrani

Description

@Ankitkhatrani

Can you provide a demo to send authorization token in request header and get that token in php file?

I am using get method for request but it will call OPTIONS method.

Here is My code:

getData()
{
let hdrs = new HttpHeaders();
hdrs.set('Authorization',"token");
return this.http.get(apiUrl,{ headers : hdrs});
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions