Issues with CodePen demos

47 views
Skip to first unread message

Raymond Camden

unread,
Jul 9, 2025, 1:28:40 PM7/9/25
to Chrome Built-in AI Early Preview Program Discussions
I've used CodePen for most of my AI demos and noticed recently that I get a unavailable result when checking availability, and if I try to create anyway, get:

NotAllowedError: Access denied because the Permission Policy is not enabled.

You can see this here, https://codepen.io/cfjedimaster/pen/LEpYPgy?editors=1011, but be sure to open the browser console, not use the CodePen console. 

Exact same code works in a 'real' page on my system so my guess it's a setting CodePen is using for their site. I've run into this once or twice in the past... I think maybe once for Bluetooth testing... so the question is - is there a particular security policy that would be required on an iframe using AI that would create this issue?

Thomas Steiner

unread,
Jul 10, 2025, 8:30:37 AM7/10/25
to Raymond Camden, Chrome Built-in AI Early Preview Program Discussions
Hi Ray,

The permission policy recently rolled out. See the explainer for details. The tl;DR is <iframe src="https://example.com/" allow="language-model"></iframe>.

Cheers,
Tom

--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/ba21b85d-cf7c-4e31-91d7-02ed03b0ea86n%40chromium.org.


--
Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----

Raymond Camden

unread,
Jul 10, 2025, 9:19:02 AM7/10/25
to Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
That makes perfect sense. I'll ping CodePen and see if they would be willing to add it.
--
===========================================================================
Raymond Camden

Email : raymon...@gmail.com
Blog : www.raymondcamden.com
Twitter: raymondcamden

Thomas Steiner

unread,
Jul 10, 2025, 9:49:25 AM7/10/25
to Raymond Camden, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Thanks! If you reach out, as per the email that I've just sent, you may want to ask them to add all of those:

  • language-model (with a dash)

  • translator
  • language-detector (with a dash)

  • writer
  • rewriter
  • summarizer

  • proofreader (likely)

Raymond Camden

unread,
Jul 10, 2025, 10:11:56 AM7/10/25
to Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Shoot - I already sent it ;) but when/if they get back to me, I'll tell em this - thanks!
Reply all
Reply to author
Forward
0 new messages