Skip to content

Allow configuring CORS policy #1

@itaym2

Description

@itaym2

Currently airbag allows CORS requests from any origin, and CORS support is on by default.
We should allow service developers to turn off or configure the CORS policy.
I suggest we add the following configuration options:

  1. ENABLE_CORS - default is false. Must be set to true in order for CORS to work
  2. ALLOWED_ORIGINS - default is none. Should be set to '*' to support all origins, or to a list of allowed origins

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