Skip to content

Commit 4dcc42e

Browse files
Merge pull request #20 from marshfellow42/main
Colocar as origens do CORS como um wildcard
2 parents 9df9c2a + 8785850 commit 4dcc42e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

api/main.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,7 @@ def get_size_limit(category: str) -> int:
137137

138138
app = FastAPI(title='Cosmos API', openapi_tags=tags_metadata)
139139

140-
origins = [
141-
"http://localhost",
142-
"http://localhost:8000",
143-
"http://127.0.0.1",
144-
"http://127.0.0.1:8000",
145-
"https://cosmos-api-two.vercel.app/",
146-
]
140+
origins = ["*"]
147141

148142
app.add_middleware(
149143
CORSMiddleware,

0 commit comments

Comments
 (0)