You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm launching the application on an iPhone running iOS 14.4 and opening the Safari Developer Tools.
Running window.WebviewProxy.convertProxyUrl('https://example.com')); returns https://example.com, with no new protocol prefixed. As a result, requests are not proxied through this plugin, and requests to external servers fail for CORS reasons.
Is your app running on a custom scheme? This is now part of cordova-ios (apache/cordova-ios#781). You need to set a scheme and hostname in config.xml to make your app run on let's say app://myapp instead of file://index.html and this proxy just works with the custom scheme.
We might need to document this in the documentation for cordova-ios.
Describe the bug
See my comment in #3 for more details.
Environment: in a new Cordova application (built with
cordova create
) and these plugins installed:I'm launching the application on an iPhone running iOS 14.4 and opening the Safari Developer Tools.
Running
window.WebviewProxy.convertProxyUrl('https://example.com'));
returnshttps://example.com
, with no new protocol prefixed. As a result, requests are not proxied through this plugin, and requests to external servers fail for CORS reasons.Investigating further, I see that
window.CDV_ASSETS_URL
returnsundefined
, which results in this line being returned: https://github.com/GEDYSIntraWare/cordova-plugin-webview-proxy/blob/master/www/WebviewProxy.js#L8Any idea why this might be happening? I can verify that the platform is on the latest version (running
cordova.platformVersion
===6.2.0
).The text was updated successfully, but these errors were encountered: