Bug 226769

Summary: Cross-Origin requests not working on iOS 15 beta with WKURLSchemeHandler
Product: WebKit Reporter: Niklas Merz <niklasmerz>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Critical CC: achristensen, john.hartmann, webkit-bug-importer, webkit, wilander
Priority: P2 Keywords: InRadar, Regression
Version: Safari Technology Preview   
Hardware: iPhone / iPad   
OS: Other   
Attachments:
Description Flags
Inital repro app none

Description Niklas Merz 2021-06-08 07:52:19 PDT
Created attachment 430841 [details]
Inital repro app

We have an app using WKURLSchemeHandler to run a custom scheme and CORS requests seem to be broken in the latest iOS 15 Developer beta.

I have built a small reproduction app using Apache Cordova. Cordova uses WKWebView and WKURLSchemeHandler to open a local HTML file on the origin myscheme://myapp. The test button fires a request that should allow CORS request from all origins. Something like this used to work with iOS 14.

This app can be tested with Cordovas CLI or just start the Xcode project in the platforms folder.

This is just my inital observation. I will investigate further.
Comment 1 Radar WebKit Bug Importer 2021-06-08 12:23:59 PDT
<rdar://problem/79027363>
Comment 2 Alex Christensen 2021-06-11 17:23:32 PDT
Thanks for reporting this.
I verified this was fixed by r278737

*** This bug has been marked as a duplicate of bug 226760 ***
Comment 3 Niklas Merz 2021-06-24 23:48:17 PDT
This issue has been fixed and release with iOS 15 Developer beta 2.

Thank you very much.
Comment 4 Alex Christensen 2021-06-24 23:49:00 PDT
Glad to hear it
Comment 5 Niklas Merz 2021-07-01 23:31:58 PDT
Looks like the latest Developer Beta 2 (19A5281j) brought this issue back. I got CORS issues again.