Skip to content

menelike/cordova-plugin-webview-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-webview-proxy

Work in progress plugin.

Cordova Plugin to proxy http(s) requests on iOS without CORS and Cookie restrictions

With this plugin you can do requests to remote servers just like you would do normally. Cookies and CORS restrictions don't apply here because the requests is performed by native code.

You just need to change the URL:

const response = await fetch(window.WebviewProxy.convertProxyUrl(url));
console.debug(response);

To delete all Cookies use this:

window.WebviewProxy.clearCookie();

Make sure you are using a custom scheme with your iOS platform

This plugin uses the WKURLSchemeHandler provided by WKWebView. It requires the latest version of cordova-ios.

Packages

No packages published

Languages

  • Objective-C 88.1%
  • JavaScript 11.9%