Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

[Web] Loading local Angular app with urlBypass through local proxy #52

Closed
MatthiasAVM opened this issue Dec 7, 2021 · 0 comments
Closed

Comments

@MatthiasAVM
Copy link

Hi,

I'm trying to load an Angular app on the web using urlBypass. I set my own local proxy with nginx.
I'm using urlBypass cause I need to inject JS into my Angular app.
When I access to my app through my proxy using a browser, my app is loaded fully.
When I access to my app through the webview, I only get the raw HTML.

I read through #27 and I saw:

normal URLs which do not support iframe embedding (such as https://google.com, you need to use SourceType.urlBypass for this). The package treats theese pages as follows:
It fetches the page's HTML source using a HTTP call to a Proxy server, which will remove the headers which block iframe embedding
It will set the HTML source to the iframe, just like we're doing at point 1) with HTML content

So my understanding is that when using urlBypass we can only get plain HTML ? Or should I change my proxy so it returns more than the HTML ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant