Skip to content

Commit 30f256c

Browse files
committed
feat: add localhost to cors for testing
1 parent a879728 commit 30f256c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def set_cors_origin_list(cls, cors_origin_list, info: FieldValidationInfo):
4343
valid_cors = cors_origin_list or []
4444

4545
# Add phidata to cors origin list
46-
valid_cors.extend(["https://phidata.app", "https://www.phidata.app"])
46+
valid_cors.extend(["https://phidata.app", "https://www.phidata.app", "http://localhost:3000"])
4747

4848
runtime_env = info.data.get("runtime_env")
4949
if runtime_env == "dev":

0 commit comments

Comments
 (0)