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

155
Views
How do you make a chrome extension that loads page you typed in?

I am making a chrome extension, but when I try to get user input, and subsequently load the page, it throws an error:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem:". Either the 'unsafe-inline' keyword, a hash ('sha256-FXypLyAT7wJfhWBTVrCbeUAS8Y801HSs7d9LQUHi6aQ='), or a nonce ('nonce-...') is required to enable inline execution.

popup.html:

<!doctype html>
<html>
  <head>
    <script>
      function connect() {
    console.log(document.getElementById('url').value);
  var urlValue = document.getElementById('url').value;
  chrome.tabs.update({
 url: urlValue
});
}
    </script>
  </head>
  <body>
      <input type="url" name="url" id="url" placeholder="http://google.com" required></input>
      <button onclick="connect()">Connect</button>
</body>
</html>

manifest.json:

 {
  "manifest_version": 2,

  "name": "extension",
  "description": "extension",
  "version": "1.0",

  "browser_action": {
   "default_icon": "icon.png",
   "default_popup": "popup.html"
  },
  "permissions": [
   "activeTab"
   ]
}
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!