exotic4599
exotic4599
RRailway
Created by exotic4599 on 5/30/2023 in #✋|help
Not able to use an endpoint on railway but all other are working fine
I have an app where I have 2 apis, one is post request to create the users data and other post request to run a function. I am not sure why one of them works and other says CORS error while connecting from frontend which is built on next.js These both api endpoints are running fine when testing from postman with the deployed production link and locally as well. But the problem is one of the api is not working if hitting it from the frontend.
I have "Access-Control-Allow-Origin" header in frontend configured with "*" and backend with
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
expose_headers=["*"],
I have "Access-Control-Allow-Origin" header in frontend configured with "*" and backend with
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
expose_headers=["*"],
Can anyone help me with this
59 replies