Our company is using NEAppProxyProvider in one of our applications.
We have found that when the extension is working many sites are broken in Safari. For example, Safari cannot play any video on YouTube.
In Safari dev console we see multiple errors
like this:
Code Block [Error] Origin <URL> is not allowed by Access-Control-Allow-Origin. [Error] XMLHttpRequest cannot load <URL> due to access control checks.
Further investigation has revealed that when the extension is working, Safari cannot get the IP of the target host (rendered as "-" or 0.0.0.0). Apparently, this breaks Safari logic that processes Access-Control-Allow-Origin.
When the extension is not active, Safari works properly. The problem persists on Catalina and Big Sur with any Safari version including Preview.
Chrome does not have this problem and works
properly when the extension is active.
So my question is:
How can we set remote endpoint IP address for a
flow using the API?
Alternatively, this can be fixed on the Safari
side.
I can file a bug report or TSI.
Thanks!