swagger uchun swagger protocol qoshildi

This commit is contained in:
behruz-dev
2025-11-22 22:10:44 +05:00
parent e538f3dcbc
commit edf20b7ecb
2 changed files with 7 additions and 0 deletions

View File

@@ -8,5 +8,7 @@ CORS_ALLOW_ALL_ORIGINS = True
CORS_ALLOW_CREDENTIALS = True CORS_ALLOW_CREDENTIALS = True
CSRF_TRUSTED_ORIGINS = [ CSRF_TRUSTED_ORIGINS = [
'https://api.meridynpharma.com/',
'http://api.meridynpharma.com/'
'https://api.meridynpharma.com' 'https://api.meridynpharma.com'
] ]

View File

@@ -109,4 +109,9 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
AUTH_USER_MODEL = 'accounts.User' AUTH_USER_MODEL = 'accounts.User'
SECURE_PROXY_SSL_HEADER = (
"HTTP_X_FORWARDED_PROTO",
env.str("SWAGGER_PROTOCOL", "https"),
)
import config.conf import config.conf