firecamp-io / firecamp

VSCode for APIs, Postman Alternative.
https://firecamp.dev
317 stars 22 forks source link

Detect CORS Problem #75

Closed TerrenceChao closed 4 years ago

TerrenceChao commented 4 years ago

When you constraint the "Access-Control-Allow-Origin"(CORS Header) with the specific domain at your server-side, it will NOT allow requests to come from other places. So there's a situation we all have been through:

Our APIs work well, but the front-end team often tell us the APIs were broken due to the following response: "Access to XMLHttpRequest at 'application-endpoint-url' from origin 'request-url' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."

The testing tool we are (backend team) using CANNOT detect such this problem, hope the Firecamp can consider the situation, make the Firecamp be able to detect the CORS problem.

welcome[bot] commented 4 years ago

Welcome to the Firecamp! Thanks and congrats for opening your very first issue in Firecamp. Join the Discord community here https://discord.gg/8hRaqhK Hope you have a great time here :)

Nishchit14 commented 4 years ago

Release under 1.4.0 You can now test CORS issue with given config as shown in below image

image

Thanks for your contribution @TerrenceChao , please feel free to reopen it in case of any issue you'll face in 1.4.0