Skip to content

Commit

Permalink
chore: csrf trust origin 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchef1 committed Jan 29, 2025
1 parent e986563 commit 9f5792d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def get_secret(setting, secrets=secrets):
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ['https://cau-likelion.org', 'http://localhost:3000',]
ALLOWED_HOSTS = ['https://cau-chunghaha.p-e.kr', 'https://cau-likelion.org', 'http://localhost:3000',]

CSRF_TRUSTED_ORIGINS = ['https://cau-chunghaha.kro.kr', 'https://cau-likelion.org', 'http://localhost:3000']
CSRF_TRUSTED_ORIGINS = ['https://cau-chunghaha.p-e.kr', 'https://cau-likelion.org', 'http://localhost:3000']
# CORS_ORIGIN_WHITELIST = ['https://api.cau-likelion.org', 'https://cau-likelion.org', 'http://localhost:3000']
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True
Expand Down

0 comments on commit 9f5792d

Please sign in to comment.