Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set host for NavigateToString #2069

Closed
Aaron-Junker opened this issue Jan 9, 2022 · 1 comment
Closed

Allow to set host for NavigateToString #2069

Aaron-Junker opened this issue Jan 9, 2022 · 1 comment
Labels
feature request feature request

Comments

@Aaron-Junker
Copy link

Is your feature request related to a problem? Please describe.
If I navigate to a string its web adress is about:blank. If a virtual host has CORS off it can't access resources of this host. And you're not able to set an eventlistener for ResourceRequested, because about:blank is not a http scheme.

Describe the solution you'd like and alternatives you've considered
Add an optional argument to navigateToString that lets you specify what the adress of the webView is.

For example:

webView.NavigateToString(html, "http://host/index.html")
@Aaron-Junker Aaron-Junker added the feature request feature request label Jan 9, 2022
@champnic
Copy link
Member

Hey @Aaron-Junker - thanks for the feature request! We are tracking this in #530. We have this work committed for this quarter, so should be starting work on it soon. Thanks!

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

No branches or pull requests

2 participants