Skip to content

Multiple parameters in environment variable "EXTRA_HEADERS" #17

@kshitij-kaithal

Description

@kshitij-kaithal

Hi, I wanted to ask that to add multiple Header:Value combinations I am using something like this for header-based authentication. Am I doing something wrong because it is working with the API's which don't require authentication but this EXTRA_HEADERS thing is not working for me. Also there was a mention of one per line. I am not sure how that works. Could you confirm once if this is the right format?

Also I am using Python language so that's why f-string is there

        "env": {
            "OPENAPI_SPEC_URL": "https://demo.com/openapi.yml",
            "EXTRA_HEADERS": f"x-csrf-token:{os.getenv('CSRFTOKEN')},Cookie:{os.getenv('COOKIE')}",
            "OPENAPI_SPEC_FORMAT": "yaml"
        }

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