How to enable webview2 to have Cross origin frame access to run script inside iframe #5296
Replies: 2 comments
-
I am allow using These option to start my webview2 instance
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Issue Has been resolved it , starting webview2 instance using the
the order of argument passed is also important |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a index.html file which i virtually host as follow to webview2
this index.html has iframe , that point to my locally hosted app eg: https://localhost/app1
now when i try to access the content of the iframe in console like this ;- iframe.contentWindow.document
i have the following error
Uncaught SecurityError: Failed to read a named property 'document' from 'Window': Blocked a frame with origin "https://app" from accessing a cross-origin frame.
My end goal is to run script inside the iframe and have playwright testcases executed on them
Beta Was this translation helpful? Give feedback.
All reactions