-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with non http and https Origins #37
Comments
Hey @babarinde, Can you probably create a failing unit test for this? Thanks in advance! Although: how does your CORS config look like? |
Thanks for your feedback its a custom origin scheme actually like this but in this case the scheme is capacitor instead of android Config: use Mezzio\Cors\Configuration\ConfigurationInterface; return [ |
I don't think that this is the right component you should raise the concern. If you are using The CORS component does not require a specific PSR-17 implementation and therefore already provides the possibility to change the implementations. We do need a PSR-17 Please either create an issue in |
Bug Report
Summary
When a request is made from an origin that its scheme is not http(s), the pre flight request fails and we understand that this may be caused by the URI factory
Current behavior
When our Origin is
capacitor://xyz.com
, pre flight request failsHow to reproduce
Make a preflight request with a non http(s) scheme
Expected behavior
Preflight and CORS request should proceed as this is a valid URI
The text was updated successfully, but these errors were encountered: