Sankalan
Sankalan
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
Thanks. It was very silly me!
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
I have solved the issue. I missed to put "/api/v1" in the deployed backend URL as defined in my application. How do I close this issue?
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
Thanks a lot, both of you. I will look into that.
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
The same CORS headers seem to be working on localhost. But I will check again and get back to you. Is there any possible reason why it works locally but not after deployment?
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
But it shouldn't. In the backend I have used Spring Security, so it may return 403 unauthorized on undefined endpoints(which it is), but the defined ones are working correctly through API testing, but once I try to connect from my React frontend, it isn't working and throwing the CORS error.
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
it was 200 ok
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
I didn't get any status code, the deployed project is working fine from postman api testing.
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
in console
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
No status code, I get the message "Access-Control-Allow-Origin" blocked by "https://newsflash-backend-production.up.railway.app"
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
I did, the backend is working fine locally with CrossOrigin enabled.
28 replies
RRailway
Created by Sankalan on 5/19/2023 in #✋|help
CORS Error
project ID : e4cfbada-ee8d-4956-b396-6eebd2672653
28 replies