#cors

4 messages · Page 1 of 1 (latest)

vale flume
#

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=["*"],
)
dusky trailBOT
#

Project ID: 8952f001-f93a-460f-927a-1565d1acd267

#

CORS (Cross-Origin Resource Sharing) is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the resource originated. It is a mechanism that enables a web application running at one domain to access resources from another domain.

vale flume
#

8952f001-f93a-460f-927a-1565d1acd267