Code Monkey home page Code Monkey logo

Comments (7)

granteagon avatar granteagon commented on June 2, 2024 3

Just did a test. I was missing the trailing colon on data. data:* and 'data' both fail, but plain data: does work. For anyone stumbling on this thread, here is my working content security policy for images:

'img-src': "'self' *.tile.osm.org *.tiles.mapbox.com data:",

from ember-cli-content-security-policy.

sir-dunxalot avatar sir-dunxalot commented on June 2, 2024

content-security-policy.com and MDN both say data: should allow resource loading via the data scheme.

'img-src': "'self' data:" doesn't work with this addon. That would suggest this is a bug.

from ember-cli-content-security-policy.

Voles avatar Voles commented on June 2, 2024

data: works, thanks! Full object:

contentSecurityPolicy: {
  'img-src': "'self' data:"
}

from ember-cli-content-security-policy.

sir-dunxalot avatar sir-dunxalot commented on June 2, 2024

@granteagon Maybe close this issue?

from ember-cli-content-security-policy.

sandstrom avatar sandstrom commented on June 2, 2024

@granteagon would you mind closing this issue? ⛵

from ember-cli-content-security-policy.

granteagon avatar granteagon commented on June 2, 2024

Sorry guys, missed this notification.

from ember-cli-content-security-policy.

complanboy2 avatar complanboy2 commented on June 2, 2024

As for chrome extension manifest, the above suggestion is working. Thanks guys.

"content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'; img-src: 'self' data:"

from ember-cli-content-security-policy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.