Skip to content

Load URL In app #1138

Answered by redraskal
AnonymousXC asked this question in Q&A
Feb 9, 2022 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Load Url in a Wails app

Hi, Is there a way to load an Url in a wails app. As using iframe or embed compromises security so, the X-HEADER is enabled. Thanks!👍⚡⚡

Possible Solution

Modify "devserverurl" in wails.json to the URL you want

Issue: Wailsjs is bypassed

If you aren't looking to navigate to an external page, maybe use a CORS proxy to bypass the issue? You could use a public one online or launch a local one with the app.
I think I have a similar issue. I'm looking to load an external app via HTTPS and inject JS into the page to modify it (this is technically possible with webview itself but not with wails v2 afaik). My goal is to render some storage website such as Google Drive fo…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@redraskal
Comment options

@AnonymousXC
Comment options

@Tazeg
Comment options

@AnonymousXC
Comment options

@xieting1990
Comment options

Answer selected by AnonymousXC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants