Page 1 of 1

Allow scripts

PostPosted: Sat Dec 03, 2022 6:04 pm
by rand0mrange
Hi all.
How to allow script execution in iframes?

The site creates multiple Iframes, I use EvaluateScriptAsync to inject the script, but the site on child Iframes forbids executing the injected script. Is it possible to enable a flag of some kind in the browser (--allow-scripts ), or is there another solution? This is the error coming from the site.

Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

Re: Allow scripts

PostPosted: Tue Dec 06, 2022 4:10 pm
by amaitland
Already asked at https://github.com/cefsharp/CefSharp/discussions/4324

In future please just ask your question one and wait patiently for a reply.