Comments (6)
why not to use the http Cordova repo?
from cordova-plugin-ionic-webview.
@manucorporat Sorry, I did not get about what are you talking.
from cordova-plugin-ionic-webview.
@manucorporat
If you are talking about https://github.com/silkimen/cordova-plugin-advanced-http
than it's not a problem to use that on the app.
But in case of app which is used as an app (on device) and a website (in browser) then need to implement something like (which is the case now for all my apps)
if (isApp) {
// make a call with HTTP native plugin
} else {
// make a call with angular Http
}
And it's not really convenient.
from cordova-plugin-ionic-webview.
doesn't your idea have the same problem?
from cordova-plugin-ionic-webview.
Nope.
Since we are calling /api/...
(by angular http) on the app it will call http://localhost:8080/api/...
(coz index.html
is loaded from http://localhost:8080/index.html
) and redirected to https://my-server.com/api
and on the web it will call http://my-server.com/api
(coz index.html
is loaded from http://my-server.com/index.html
) .
Then on the server, it's a role of the web server to forward requests /api
to the back end.
from cordova-plugin-ionic-webview.
It is very unlikely this will be ever be part of this repo, since it is not related with WK stuff or the app correctly, but a specific limitation of not implementing CORS.
I would suggest to look or create a new cordova plugin that only implements the proxy feature. I would be happy to add it to this section in the docs: https://ionicframework.com/docs/wkwebview/#i-cant-implement-cors
from cordova-plugin-ionic-webview.
Related Issues (20)
- The input control cannot hide the keyboard
- navigation to non-allowed URL
- [iOS 15.5] Incorrect events on canvas long press HOT 1
- New Window Not open if using Stripe Hosted Payment Page (see video)
- ERROR:aw_browser_terminator.cc(123) HOT 1
- Very slow to load large local video HOT 4
- uploading to the app store / Asset validation failed HOT 1
- Autofocus not centering field in view
- Problem when set fullscreen mode for some video inside WebView content
- Html canβt load local video on iOS
- Impossible to publish to appstore. iOS 16.1 SDK target
- ios 16.1 SDK support
- Cannot debug the webview with safari inspect tool HOT 1
- On iPhone devices screen is zoomed in and fails to resize back after user enters input
- Trying to use import modules using the plugin does not work - any way to get around this?
- Plugins won't load on iOS with ionic urls
- How to used in pdf-generator plugin
- apps using IonicWebViewEngine fails to load on pixel phones running android 14
- Plaid OAuth Integration Feature
- [iOS]add option textInteractionEnabled support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-ionic-webview.