prepare allocate tags to organizations api
This commit is contained in:
@@ -35,7 +35,8 @@ ALLOWED_HOSTS = [
|
||||
'https://api.rasadyaar.net',
|
||||
'https://api.dam.rasadyaar.net',
|
||||
'http://localhost:3000',
|
||||
'http://192.168.88.130:3000'
|
||||
'http://192.168.88.130:3000',
|
||||
'https://rasaddam-front.liara.run'
|
||||
]
|
||||
|
||||
# Application definition
|
||||
@@ -151,6 +152,7 @@ REST_FRAMEWORK = {
|
||||
'rest_framework.authentication.SessionAuthentication',
|
||||
'rest_framework.authentication.BasicAuthentication',
|
||||
),
|
||||
'EXCEPTION_HANDLER': 'apps.core.error_handler.custom_exception_handler',
|
||||
"DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination",
|
||||
"PAGE_SIZE": 25,
|
||||
'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema'
|
||||
@@ -282,16 +284,6 @@ DATA_UPLOAD_MAX_MEMORY_SIZE = 50242880
|
||||
CORS_ORIGIN_ALLOW_ALL = False
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
# CORS_ORIGIN_WHITELIST = (
|
||||
# # 'http://localhost:8080',
|
||||
# # 'http://127.0.0.1:8080',
|
||||
# # 'http://127.0.0.1:3000',
|
||||
# # 'http://localhost:3000',
|
||||
# # 'http://192.168.88.130:3000',
|
||||
# # 'https://rasadyar.net'
|
||||
# '*',
|
||||
# )
|
||||
#
|
||||
CORS_ALLOWED_ORIGINS = (
|
||||
'http://localhost:8080',
|
||||
'http://127.0.0.1:8080',
|
||||
@@ -299,6 +291,7 @@ CORS_ALLOWED_ORIGINS = (
|
||||
'http://localhost:3000',
|
||||
'http://192.168.88.130:3000',
|
||||
'https://rasadyar.net'
|
||||
'https://rasaddam-front.liara.run'
|
||||
)
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
||||
Reference in New Issue
Block a user