Skip to content

CORS exception regex#173

Merged
das-Abroxas merged 5 commits intomainfrom
feat/CORS_exception
May 13, 2024
Merged

CORS exception regex#173
das-Abroxas merged 5 commits intomainfrom
feat/CORS_exception

Conversation

@das-Abroxas
Copy link
Copy Markdown
Contributor

Adds a config parameter that can be used to set CORS exceptions for certain origins via regex.

Requests with an Origin header whose value matches the regex always receive the following CORS response headers in the response:

  • Access-Control-Allow-Origin: *
  • Access-Control-Allow-Methods: *
  • Access-Control-Allow-Headers: *

This allows the operators of a DataProxy to release its resources for interactions with certain applications. If the parameter is not set, only the set bucket CORS rules are applied as before.

@das-Abroxas das-Abroxas added the enhancement New feature or request label May 13, 2024
@das-Abroxas das-Abroxas requested review from St4NNi and lfbrehm May 13, 2024 07:46
@das-Abroxas das-Abroxas self-assigned this May 13, 2024
Copy link
Copy Markdown
Member

@St4NNi St4NNi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not the best solution, but works for now. LGTM

@das-Abroxas das-Abroxas merged commit 0703377 into main May 13, 2024
@das-Abroxas das-Abroxas deleted the feat/CORS_exception branch June 20, 2024 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants