Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
3443f84
1
Parent(s):
aa20113
remove localhost entry from allowed origins in middleware configuration
Browse files
main.py
CHANGED
@@ -74,7 +74,7 @@ app.add_middleware(
|
|
74 |
allow_origins=[
|
75 |
"https://*.hf.space", # Allow all Hugging Face Spaces
|
76 |
"https://*.huggingface.co", # Allow all Hugging Face domains
|
77 |
-
"http://localhost:5500", # Allow localhost:5500 # TODO remove before prod
|
78 |
],
|
79 |
allow_credentials=True,
|
80 |
allow_methods=["*"],
|
|
|
74 |
allow_origins=[
|
75 |
"https://*.hf.space", # Allow all Hugging Face Spaces
|
76 |
"https://*.huggingface.co", # Allow all Hugging Face domains
|
77 |
+
# "http://localhost:5500", # Allow localhost:5500 # TODO remove before prod
|
78 |
],
|
79 |
allow_credentials=True,
|
80 |
allow_methods=["*"],
|