Insomnia: [Feature Request] CORS and preflight requests

Created on 5 Jan 2018  ยท  8Comments  ยท  Source: Kong/insomnia

  • Insomnia Version: 5.12.4
  • Operating System: Windows 10 x64

Details

Currently, Insomnia ignores any possible CORS issues, and always sends the request as is.

It would be nice to have the option to enable a strict CORS mode, where Insomnia would mirror the current behavior of browsers, by following the CORS spec and performing the following steps:

1) Check if the request requires a preflight request.
2) If yes, send a preflight request first.
3) If the server responds with an error, display that and abort the request.
4) If server responds with a preflight response, check the original request against the preflight response.
5) If it's valid, send the actual request and proceed as is done currently. (Also show the preflight request and response in the Timeline).
6) If it's not valid, display an error explaining why, and abort the request.

This would be valuable for testing and debugging CORS issues.

accepted

Most helpful comment

I think this is still a viable feature, and should not be marked stale.

All 8 comments

๐Ÿ‘‹ Thanks for opening your first issue! If you're reporting a ๐Ÿž bug, please make sure
you include steps to reproduce it. If you're requesting a feature ๐ŸŽ, please provide real
use cases that would benefit. ๐Ÿ‘ช

To help make this a smooth process, please be sure you have first read the
contributing guidelines.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@insomnia I never received any response as to the viability of such a feature. Is this something you would consider adding to Insomnia?

Sorry I missed this one @BehindTheMath!

If someone with knowledge of CORS wants to take this one on I'd be happy to help get it to a releasable state.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

I think this is still a viable feature, and should not be marked stale.

I agree that this would be a viable feature. Sure wish I had it right now as we are working with some of these issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shadeglare picture shadeglare  ยท  3Comments

Fyb3roptik picture Fyb3roptik  ยท  4Comments

kalinchernev picture kalinchernev  ยท  4Comments

rootext picture rootext  ยท  3Comments

tmaiaroto picture tmaiaroto  ยท  4Comments