MoffKalast / vizanti

A mission planner and visualizer for controlling outdoor ROS robots.
https://wiki.ros.org/vizanti
BSD 3-Clause "New" or "Revised" License
134 stars 26 forks source link

webkit blocks fetch over HTTP #1

Closed MoffKalast closed 11 months ago

MoffKalast commented 1 year ago

Apparently Apple's ATS blocks fetch and XHR requests over HTTP, which is a bit of a problem if you're working offline without a way to access a root certificate authority. For macOS a known workaround is to modify the Info.plist file to add an exception.

The workaround for iOS mobile devices is something like this: create a self signed SSL cert, reconfigure rosbridge and the flask server to use it, get the key onto the device and install it, set the cert as a trusted root authority. Repeat every time the cert expires.

MoffKalast commented 11 months ago

Well I've found a few sneaky workarounds that make it possible to ditch all xhr and fetch requests, so Safari should work properly now.