Skip to content

CORS errors due to header changes #341

@VincentVW

Description

@VincentVW

A recent change that is in the latest release (v9.3.1) seems to cause CORS errors for me.

On preflight requests this package now sends
access-control-request-headers of flagsmith-sdk-user-agent,x-environment-key, while flagsmith-sdk-user-agent is not to be found as allowed cors header in the api as far as I see.

The returned allowed headers from the preflight request seem to confirm that: accept, accept-encoding, authorization, content-type, dnt, origin, user-agent, x-csrftoken, x-requested-with, sentry-trace, X-Environment-Key, X-E2E-Test-Auth-Token. But I might be on a slightly older version of the BE so I'm not 100% sure.

I'd be happy to help on any change, I don't know context/intent here but feel free to tell me and ask for a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions