Skip to content

Commit

Permalink
fix: allowed origins
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 18, 2024
1 parent 2592339 commit b16fcf5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codeforlife/settings/third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
import json
import os

from .custom import SERVICE_SITE_URL
from .django import DEBUG

# CORS
# https://pypi.org/project/django-cors-headers/

CORS_ALLOW_ALL_ORIGINS = DEBUG
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOWED_ORIGINS = ["https://www.codeforlife.education"]
CORS_ALLOWED_ORIGINS = [SERVICE_SITE_URL]

# REST framework
# https://www.django-rest-framework.org/api-guide/settings/#settings
Expand Down

0 comments on commit b16fcf5

Please sign in to comment.