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 8, 2022
1 parent a1c6406 commit c3aba86
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 c3aba86

Please sign in to comment.