auth0-cli icon indicating copy to clipboard operation
auth0-cli copied to clipboard

Script Tags break storybook branding update

Open lucasmpr opened this issue 2 years ago • 0 comments

Description

I'm trying to customize the login page using a little bit of javascript, but storybook breaks whenever there is a javascript code. The development flow is a bit broken by having to upload every change.

Reproduction

  1. Run auth0 branding templates update
  2. Input a script tag with anything: <script> console.log("A")</script>
  3. Go see the result in storybook.

This is the result here:

image

"`); iframe.contentWindow.document.close();"

Environment

Please provide the following:

  • Version of this library used: 0.11.9
  • Other relevant versions (language, server software, OS, browser): Windows 11 - Chrome

lucasmpr avatar Aug 30 '22 14:08 lucasmpr