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 8979005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:44:39+00:00 2026-06-15T19:44:39+00:00

I read about Content Security Policy from: http://developer.chrome.com/extensions/contentSecurityPolicy.html It is mentioned there that: If

  • 0

I read about Content Security Policy from:
http://developer.chrome.com/extensions/contentSecurityPolicy.html

It is mentioned there that:
“If you have a need for some external JavaScript or object resources, you can relax the policy to a limited extent by whitelisting secure origins from which scripts should be accepted”

The example shows that you need to add to your manifest.json this line:

"content_security_policy": "script-src 'self' https://example.com; object-src 'self'"

but if I want not only to support https://example.com, but every web site?
btw – is it also possible to include “Evaluated JavaScript”: 'unsafe-eval' to that?
what should I write instead?

  • 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-15T19:44:40+00:00Added an answer on June 15, 2026 at 7:44 pm

    The page you reference explicitly states, “As man-in-the-middle attacks are both trivial and undetectable over HTTP, those origins will not be accepted.” Thus, http: origins are right out. You can whitelist all the secure origins Chrome extensions allow with a protocol-only source: script-src 'self' https:. That’s the best you can do inside a Chrome extension: on the web at large, you could whitelist script-src http: https:.

    To the other question, 'unsafe-eval' is now permitted in extensions. In previous versions of Chrome it was not allowed, but it seems that Google recently reversed their position on that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read about canonical tags in HTML and from what I understood it is
I read that discussion about the content of ~/.gitconfig on Linux: https://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain I know
Read about Server push here . I want to push data to client from
I read about Big-O Notation from here and had few questions on calculating the
How can I target dynamically loaded content with jQuery? I've read about it a
I happen to read about XSS and how to avoid it. From what I
I read about using <context:component-scan base-package=tld.mydomain.business> <context:include-filter type=annotation expression=org.springframework.stereotype.Service/> </context:component-scan> and annotate my service
Read about the issue in this stackoverflow question . Still have the same issue
Ive read about it and to be honest it all seems like a bunch
I read about small talk being completely object oriented.. is C++ also completely object

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.