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

Extension is not working on chrome 130 #101

Closed
Herobread opened this issue Oct 16, 2024 · 6 comments
Closed

Extension is not working on chrome 130 #101

Herobread opened this issue Oct 16, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Herobread
Copy link
Owner

Description

Some content policy issue

content-script-loade…7h9za-DvBTOSDf.js:7 Refused to load the script 'chrome-extension://366cb80a-4f93-453e-9309-fe671ec88018/assets/index.tsx-a6v7h9za.js' because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

Screenshots

image

@Herobread Herobread added the bug Something isn't working label Oct 16, 2024
@Herobread Herobread self-assigned this Oct 16, 2024
@Herobread Herobread changed the title Extneison is not working on chrome 130 Extension is not working on chrome 130 Oct 16, 2024
@Herobread
Copy link
Owner Author

image

@Herobread
Copy link
Owner Author

(function () {
  'use strict';

  (async () => {
    await import(
      /* @vite-ignore */
      chrome.runtime.getURL("assets/index.tsx-a6v7h9za.js")
    );
  })().catch(console.error);

})();

in bundle content-script-loader.index.tsx-a6v7h9za-DvBTOSDf.js

@Herobread
Copy link
Owner Author

@Herobread
Copy link
Owner Author

added temporary workaround for build

33396cc

@cherfaoui-syphax
Copy link

added temporary workaround for build

33396cc

Thank you so much , this worked for me

@Herobread
Copy link
Owner Author

#103

now it's possible to just update to the new version of crxjs

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