Skip to content

Commit

Permalink
Accept additional CORS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Sep 19, 2022
1 parent 833b48d commit 58c5c9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dandiapi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
TestingBaseConfiguration,
)
from configurations import values
from corsheaders.defaults import default_headers
from dandischema.consts import DANDI_SCHEMA_VERSION as _DANDI_SCHEMA_VERSION


Expand All @@ -25,6 +26,9 @@ class DandiMixin(ConfigMixin):

DANDI_ALLOW_LOCALHOST_URLS = False

# Needed for Sentry Performance to work in frontend
CORS_ALLOW_HEADERS = default_headers + ('baggage', 'sentry-trace')

@staticmethod
def mutate_configuration(configuration: type[ComposedConfiguration]):
# Install local apps first, to ensure any overridden resources are found first
Expand Down

0 comments on commit 58c5c9c

Please sign in to comment.