Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CORS settings to allow forum to get information from platform #1037

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions csp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,21 @@
CORS_REPLACE_HTTPS_REFERER = True
# Use only to restrict to specific servers/domains

# CORS_ORIGIN_WHITELIST = (
# 'stanford-qa.com',
# )
CORS_ORIGIN_WHITELIST = (
# 'stanford-qa.com',
'forum.daemo.org',
)

CORS_URLS_REGEX = r'^/(api/done|v1/user/activity)/*$'

CORS_URLS_REGEX = r'^/api/done/*$'
CORS_ALLOW_METHODS = (
'GET',
'POST',
'OPTIONS'
)

CORS_ALLOW_CREDENTIALS = True

HALF_OFF = True
NON_PROFIT_EMAILS = ['.edu', '.org']

Expand Down