-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi @CoreyMSchafer ...
every time i want to start with fastAPI I'm struggling with this issue ...
Do you have any clue how to fix this?
INFO: 127.0.0.1:59250 - "WebSocket /" 403
INFO: connection rejected (403 Forbidden)
INFO: connection closed
INFO: 127.0.0.1:59257 - "WebSocket /" 403
INFO: connection rejected (403 Forbidden)
INFO: connection closed
I also tried the example from the fastAPI documentation with the same result. :(
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
origins = [
"*"
]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
@app.get("/")
async def main():
return {"message": "Hello World"}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels