Ticketmaster webpage third-party content causing NSURLErrorDomain -1002
See original GitHub issueBug description: Some sites have content that does not follow proper web standards and are causing our component to fail hard. There needs to be a way to let these errors fail silently so the entire page doesn’t crash.
I have Allow Arbitrary Loads
& NSAllowsArbitraryLoadsInWebContent
enabled in our Info.plist file
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
I also have set mixedContentMode="always"
To Reproduce: Loading any Ticketmaster.com ticketing page will initially load and as secondary content (JS, images, etc…) loads an error will be thrown. For ex: https://www1.ticketmaster.com/billy-joel-billys-70th-birthday-new-york-new-york-05-09-2019/event/3B00554F06438807
The URL will throw a NSURLErrorDomain with error code: -1002 (unsupported URL)
Expected behavior: Webview does not throw error on webpage content or secondary url requests, should be able to fail gracefully on nested content instead of a hard failure.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:12
Top GitHub Comments
No need to patch the native code. Here’s how to solve it:
Update 02/08/2019: This is actually the default value of
originWhitelist
so you can omit it.Can I close this ?