A
A
Alex2019-05-28 15:21:25
JavaScript
Alex, 2019-05-28 15:21:25

How to use std:kv-storage in browser extension?

Inside the browser extension I am trying to load the repository But when I run it I get the following error
import { storage } from 'std:kv-storage';

Refused to load the script 'std:kv-storage' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

I don't understand CPS directives at all. How to be? As I understand it, you need to register some kind of rule so that there is permission to download?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question