breautek commented on issue #1283:
URL: https://github.com/apache/cordova-ios/issues/1283#issuecomment-1408678634

   This is limitation of the iOS SDK.
   
   > It is a programmer error to register a handler for a scheme WebKit already 
handles, such as https, and this method raises an 
[NSInvalidArgumentException](https://developer.apple.com/documentation/foundation/nsinvalidargumentexception?language=objc)
 if you try to do so.
   
   
https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler?language=objc
   
   iOS reserves the right to use any well known scheme. There is no explicit 
list for what iOS reserves, probably because the list can be changed, but you 
can count that any standardised protocol is likely included, such as:
   
   - http
   - https
   - ssh
   - ftp
   - file
   - ... so on
   
   On the contrary, Android enforces the scheme to be either `http` or `https`, 
so it is impossible to make both platforms consistent in this regard. The 
server must be able to handle dynamic origins for their CORS compliance.
   
   This can be done by checking the request's `Origin` header, and returning 
the value of the `Origin` header as the response's 
`Access-Control-Allow-Origin` header, if the value is acceptable.
   
   Closing as won't fix.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to