swagger uchun swagger protocol qoshildi
This commit is contained in:
@@ -8,5 +8,7 @@ CORS_ALLOW_ALL_ORIGINS = True
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
'https://api.meridynpharma.com/',
|
||||
'http://api.meridynpharma.com/'
|
||||
'https://api.meridynpharma.com'
|
||||
]
|
||||
@@ -109,4 +109,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
AUTH_USER_MODEL = 'accounts.User'
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = (
|
||||
"HTTP_X_FORWARDED_PROTO",
|
||||
env.str("SWAGGER_PROTOCOL", "https"),
|
||||
)
|
||||
|
||||
import config.conf
|
||||
Reference in New Issue
Block a user