Skip to content

Commit

Permalink
Add cors origin allow_all env variable in settings.py with default se…
Browse files Browse the repository at this point in the history
…t as false
  • Loading branch information
kshitijrajsharma committed Apr 2, 2024
1 parent 60aba7d commit ac4628d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/aiproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

CORS_ORIGIN_WHITELIST = ALLOWED_ORIGINS

# CORS_ORIGIN_ALLOW_ALL = True
CORS_ORIGIN_ALLOW_ALL = env("CORS_ORIGIN_ALLOW_ALL", default= False)

REST_FRAMEWORK = {
"DEFAULT_SCHEMA_CLASS": "rest_framework.schemas.coreapi.AutoSchema",
Expand Down

0 comments on commit ac4628d

Please sign in to comment.