add cors headers

This commit is contained in:
behruz-dev
2025-08-01 17:40:39 +05:00
parent 4c6a0b4445
commit bb7c49c895
4 changed files with 13 additions and 1 deletions

View File

@@ -2,4 +2,5 @@ from .jazzmin import *
from .drf_yasg import *
from .redis import *
from .rest_framework import *
from .rest_framework_simplejwt import *
from .rest_framework_simplejwt import *
from .cors_headers import *

View File

@@ -0,0 +1,8 @@
CORS_ALLOWED_ORIGINS = [
"http://localhost:8081",
"http://127.0.0.1:8081",
]
CSRF_TRUSTED_ORIGINS = [
"https://uyqur.felixits.uz",
]