add Idempotency-Key to allowed CORS header to improve compatibility with more web client

pull/618/head
D 2023-07-23 22:47:23 +00:00
rodzic 4a8bdec90c
commit fdf6dd4dd8
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ import dj_database_url
import django_cache_url
import httpx
import sentry_sdk
from corsheaders.defaults import default_headers
from pydantic import AnyUrl, BaseSettings, EmailStr, Field, validator
from sentry_sdk.integrations.django import DjangoIntegration
@ -338,6 +339,7 @@ CORS_ORIGIN_WHITELIST = SETUP.CORS_HOSTS
CORS_ALLOW_CREDENTIALS = True
CORS_PREFLIGHT_MAX_AGE = 604800
CORS_EXPOSE_HEADERS = ("link",)
CORS_ALLOW_HEADERS = (*default_headers, "Idempotency-Key")
JSONLD_MAX_SIZE = 1024 * 50 # 50 KB