charting-library-examples
charting-library-examples copied to clipboard
CORS on iPhone 11
Only on iPhone X/11, I'm having a CORS problem when trying to access the DataFeed on mobile example app and none of workaround make it work, has anyone facing a similar problem?
"Access-Control-Allow-Origin" on header, "Prevent Cross-Site Tracking" on Safari setting or 'mode' on 'get' didn't work. However, it works perfect on any Android and older iPhone devices.
Are you trying to connect to our sample datafeed, right?
If so, we faced similar issue with the latest iOS version (v14 I guess) - it refuses our certificate which is completely correct even by their own "new rules" (about short-term SSL certs) (it's really weird story actually though). Apple doesn't respond for my requests about this issue.
That's why we've registered a temporary domain for datafeed see https://github.com/tradingview/charting_library/blob/704c70da52ffeb40763e6e92dac7cd0b6d7517eb/index.html#L33. Hopefully it seems that the certificate will be renewed within a month or two and I hope it'll fix the issue.