cors origin

This commit is contained in:
nabijonovdavronbek619@gmail.com
2025-12-09 10:02:34 +05:00
parent a91ab65522
commit 991c0721e2

View File

@@ -147,3 +147,10 @@ MEDIA_ROOT = BASE_DIR / 'resources/media'
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
CSRF_TRUSTED_ORIGINS = [
"https://serenmebel.uz",
"https://www.serenmebel.uz",
"https://api.serenmebel.uz",
]