We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 219e1c4 commit 1fe7e34Copy full SHA for 1fe7e34
1 file changed
server/api/settings.py
@@ -38,6 +38,11 @@
38
else []
39
)
40
41
+CSRF_TRUSTED_ORIGINS = (
42
+ "http://localhost:3000",
43
+ "http://127.0.0.1:3000",
44
+ os.environ.get("FRONTEND_URL"),
45
+)
46
47
# Application definition
48
@@ -70,6 +75,7 @@
70
75
CORS_ALLOWED_ORIGINS = [
71
76
"http://localhost:3000",
72
77
"http://127.0.0.1:3000",
78
+ os.environ.get("FRONTEND_URL")
73
79
]
74
80
81
ROOT_URLCONF = "api.urls"
0 commit comments