Luca
08/26/2022, 6:24 PMpython
api = CORSMiddleware(
app=api,
allow_origins=[
"http://localhost:3000"
],
allow_credentials=True,
allow_methods=["GET", "PUT", "POST", "DELETE", "OPTIONS", "PATCH"],
allow_headers=["Content-Type", SUPERTOKENS_HEADER] + get_all_cors_headers(),
expose_headers=[SUPERTOKENS_HEADER]
)
The value for SUPERTOKENS_HEADER is x-st-cookie
but i am still using the default cookie implementaion at this time.rp_st
08/26/2022, 7:39 PMrp_st
08/26/2022, 7:39 PMrp_st
08/26/2022, 7:39 PMLuca
08/26/2022, 8:45 PMrp_st
08/27/2022, 2:02 AM