Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin incorrectly removes https:// urls #20

Open
minht11 opened this issue Aug 9, 2022 · 1 comment
Open

Plugin incorrectly removes https:// urls #20

minht11 opened this issue Aug 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@minht11
Copy link

minht11 commented Aug 9, 2022

Given input like this

<!DOCTYPE html>
<html>
  <head>
    <base href="/" />
    <meta charset="UTF-8" />
    <meta
      http-equiv="Content-Security-Policy"
      content="
        default-src 'self' 'unsafe-inline';
        img-src 'self' https://img.youtube.com;
        frame-src 'self' https://www.youtube-nocookie.com;
        connect-src 'self'
      "
    />
  </head>
  <body>
    <div id="app"></div>
  </body>
</html>

Even without using any env variables, just base plugin https links are removed with the output of this

 default-src 'self' 'unsafe-inline'; img-src 'self' https: frame-src 'self' https: connect-src 'self' 
@minht11
Copy link
Author

minht11 commented Aug 29, 2022

Setting compiler: false fixes the issue

@lxs24sxl lxs24sxl added the bug Something isn't working label Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants