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 390dec2 commit def30d1Copy full SHA for def30d1
src/backends/main.py
@@ -20,12 +20,13 @@
20
21
# Configure CORS settings
22
origins = [
23
- "http://localhost:3000",
24
- # "https://your-web-ui.com",
+ "*", # to whitelist any url, REMOVE THIS FOR PRODUCTION!!!
+ # "http://localhost:3000", # for dev
25
+ # "https://your-web-ui.com", # for prod
26
]
27
app.add_middleware(
28
CORSMiddleware,
- allow_origins=origins, # or use "*" to whitelist any url
29
+ allow_origins=origins,
30
# allow_credentials=True,
31
allow_methods=["*"],
32
allow_headers=["*"],
0 commit comments