add cors headers
This commit is contained in:
@@ -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 *
|
||||
8
config/conf/cors_headers.py
Normal file
8
config/conf/cors_headers.py
Normal file
@@ -0,0 +1,8 @@
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"http://localhost:8081",
|
||||
"http://127.0.0.1:8081",
|
||||
]
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
"https://uyqur.felixits.uz",
|
||||
]
|
||||
Reference in New Issue
Block a user