CORS and preflight requests #3626
Replies: 9 comments
-
👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure To help make this a smooth process, please be sure you have first read the |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
@insomnia I never received any response as to the viability of such a feature. Is this something you would consider adding to Insomnia? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
I think this is still a viable feature, and should not be marked stale. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, you can simulate a preflight request by doing an OPTIONS request with your target host domain in the Since Insomnia allows chaining requests (not sure how it works, though, since I've never tried it), you could make this request take place before all other requests, which would effectively simulate browser behavior. |
Beta Was this translation helpful? Give feedback.
-
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:
This would be valuable for testing and debugging CORS issues.
Beta Was this translation helpful? Give feedback.
All reactions