Hi there, I’ve been working towards migrating my v1 app to WKWebView. There are several issues I need to figure out a solution for, but here are a few I am hoping others have faced (and solved):
Due to enforced CORS issue, several well known APIs don’t work anymore with browser http. Here are some examples
https://api.github.com/repos/pliablepixels/zmNinja/releases/latestas well as
https://medium.com/zmninja/latest?format=json- all from popular sites, don’t work due to missing
Access-Control-Allow-Originheaders. It’s unreasonable to expect them to insert a
localhost:8080- why would they do that? How have others solved these issues?
I realize there is a
cordova-advanced-httpplugin that can sidestep this. Is anyone aware of a angularjs wrapper that switches between this and browser $http - my app needs to work in both desktop and mobile. There is a wrapper written by a contributor, but that’s for Angular, not AngularJS. If there isn’t one, can someone point me to some simple template that can help me start writing one? I don’t want to replace all code elements around my codebase. Would prefer to keep
Here is the zinger. Even if I use
cordova.plugin.httpfor regular APIs, I need to use the browser
<img src>tag to display images that need to borrow credentials from these API calls. Will it work - because
img srcalways uses a browser http function. I know there are several replacements to
imgbut none of the handle streaming images. Thanks.