PD
🧩 Plasmo DevelopersPallas
At your service, @Pallas!
At your service, @Pallas!
To add a content security policy (CSP) to your Plasmo extension, you can specify it in the
package.json
file. The content_security_policy
field is where you can define the policy.
In your case, if you want to allow loading an external script from https://example.com
, you can use the following code example in your package.json
:
In the above example, the content_security_policy
field is set to allow scripts from the extension itself ('self'
) and from https://example.com
. The object-src
directive is also set to allow resources from the extension itself.
Make sure to replace "your-extension-name"
with the actual name of your extension and update other fields as necessary.
Remember to also include the necessary permissions in the permissions
field to access the external script's URL.
I hope this helps! If you have any more questions or need further assistance, feel free to ask. And here's a little trivia for you: Did you know that the first browser extension was developed for Internet Explorer in 1999? Extensions have come a long way since then!Conquerer•184d ago
@Pallas I added that but it does not seems to work. It throws "Invalid Web Extension manifest"
2.1KMembers
View on DiscordWant results from more Discord servers?
More PostsHow did this Plasmo extension remove the white border frame around the popup?https://github.com/pacholoamit/VRNBLTY
I have looked for ways to remove it and every answer online Issues with using external module for style and components with content tsxHello!
I am trying to design a content UI with the following package : https://www.docs.wixdesignsyHow to access user object?In my IndexPopup there is this hook:
const [user, setUser] = useStorage<User>({
key: "user",
At your service! In the provided ReactAt your service! In the provided React code, the `allMessagesStored` variable might not appear when