Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8476947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:19:09+00:00 2026-06-10T18:19:09+00:00

I get this error, but i can not figure out the fix for it:

  • 0

I get this error, but i can not figure out the fix for it:

Refused to load the script ‘http://api.ustream.tv/json/channel/…’ because it violates the following Content Security Policy directive: “script-src ‘self’ chrome-extension-resource:”.

Is there any way i can remove this error? Here is my json code.

{
    "manifest_version": 2,
    "name": "COD Television Live Checker",
    "version": "1.0",
    "description": "The Official Crome Extension of CodTelevision.com - Live Checker",
    "browser_action": 
    {
    "default_icon": "icon.png",
    "default_popup": "main.html"
    }
    "permissions": ["http://api.ustream.tv/json/channel/*"]
}

and my html code:

<!DOCTYPE HTML>
<html> 

<head>
<script type="text/javascript" src="jquery-latest.js"></script>
<script type="text/javascript" src="popup.js"></script>
</head>

<body>

<center><span id="status1">No Data</span></center>

</body> 
</html> 

and finally my javascript:

var query = 'http://api.ustream.tv/json/channel/...';
jQuery.getJSON(query, function(data) {
    if (data == 'live') {
        document.getElementById("status1").innerText = "LIVE";
    } else {
        document.getElementById("status1").innerText = "OFFLINE";
    }
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:19:10+00:00Added an answer on June 10, 2026 at 6:19 pm

    You have to set the correct permission in the manifest file:

    "permissions": [
      "http://api.ustream.tv/json/channel/*"
    ]
    

    As can be found here in the docs.

    UPDATE

    I see that you are using the v2 manifest. In that case you should add the following to your manifest:

    "content_security_policy": "script-src 'self' http://api.ustream.tv; object-src 'self'",
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why I get error with this query on my live server but not on
Why do I get error in this code?Even if i do not link but
I have been searching on this for hours and can not figure out the
I get this error message pageContext cannot be resolved but I have no variable
I get the following errors in DDMS . But how can I trace this
I see that many people get this error, but their situations all appear a
I tried to make a new bare git repository but I get this error:
I'm sending a simple mail with attachment using SmtpClient but I get this error:
I need to get a value from another page. But I get this error
I get this response: {success:true,errorCode:-1,error:} No HTML inside the JSON, but the js say

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.