Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
¿Cómo cargar el script vuejs en una extensión de la barra lateral de Firefox y no obtener un error de Política de seguridad de contenido?

Estoy ansioso por reescribir mi primera extensión de Firefox usando vueJS.

El manifestio.json

 { "manifest_version": 2, "name": "vuejs note taking", "version": "1.0", "description": "Tracks your browsing time on any given domain", "browser_specific_settings": { "gecko": { "id": "xxxxx@gmail.com" } }, "browser_action": { "default_icon": { "16": "icon.png", "32": "icon.png" }, "default_title": "Open Sidebar" }, .... "sidebar_action": { "default_icon": "icon.png", "default_title": "Theme integrated sidebar", "default_panel": "sidebar/index.html", "open_at_install": false } }

En background.js

 browser.browserAction.onClicked.addListener(async () => { await browser.tabs.create({ url: 'sidebar/index.html' }); });

y luego la sidebar/index.js

 <!DOCTYPE html> <html> <head> <title>Vue</title> <meta charset="UTF-8"> <link rel="stylesheet" href="index.css"/> </head> <body> <div id="app">{{msg}}</div> <script src="/sidebar/myscripts/vuejs-lib.js"></script> <script src="/sidebar/myscripts/main.js"></script> </body> </html>

(A través de experimentos tuve que empezar desde root src="/sidebar/.. )

El código funciona, intenté ejecutarlo en un servidor. Pero cuando lo ejecuto en firefix (con web-ext run ) me sale el error de

 Content Security Policy: The page's settings blocked the loading of a resource at eval ("script-src").
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!