Hi All,
I've searched for a while to avoid writing this post but couldn't find. I'm getting the CORS Block.
This is how my fast API code looks like:
app = FastAPI()
# Add CORS middleware to your FastAPI app
app.add_middleware(
CORSMiddleware,
allow_origins=["https://STAGING.webflow.io",
"https://PROD.com",
"https://www.PROD.com"], # Add your allowed origins here
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)