Skip to content

Commit 11d0f71

Browse files
Merge pull request #21 from Luar6/dev
Reverter a função do origins no CORS
2 parents b0f5235 + 4dcc42e commit 11d0f71

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

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)