Allow scripts

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Allow scripts

Postby rand0mrange » Sat Dec 03, 2022 6:04 pm

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.
rand0mrange
Newbie
 
Posts: 1
Joined: Sat Dec 03, 2022 6:01 pm

Re: Allow scripts

Postby amaitland » Tue Dec 06, 2022 4:10 pm

Already asked at https://github.com/cefsharp/CefSharp/discussions/4324

In future please just ask your question one and wait patiently for a reply.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 12 guests