Skip to content

How to pass custom headers in cloneOptions #1407

Description

@stotz89

Hi guys,

Out of authorization reasons I need to pass some additional headers.
I saw there is a possibility within the cloneOptions that there is the type fetchOptions which has also a type where you can pass customHeaders (type strarray).
Unfortunately I have no idea how to use this strarray.
I need to add some token like
Authorization: Basic XCVd
Proxy-Authorization: Bearer GDNkkk
and so on.

Could you give me an example?

Thanks in advance

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