Skip to content

CORS Error with Custom Headers #387

@fenriskiba

Description

@fenriskiba

We tried implementing the functionality for PR #300, but ran into a CORS Error when we tried to call it. It looks like Flagr is not including some of the required CORS Headers in the preflight call responses because the User ID Header being a new Custom header:

cors-preflight

I think it is an issue with the CORS Configs getting hardcoded in middleware.go with a set list of Allowed Headers. If so, it should be fairly easy to convert that (and maybe a couple other CORS Configs) to be populated by a Env Config, but I wanted to check if that made sense as the problem before starting the process on our side to contribute that change.

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