Git Product home page Git Product logo

Comments (6)

igrigorik avatar igrigorik commented on August 21, 2024

As it stands, I think the plan is to require the FP policy to be present on every response - i.e. there is no persistence of the policy across pages. Does that address this?

from webappsec-permissions-policy.

jyasskin avatar jyasskin commented on August 21, 2024

Sorry, the issue @noncombatant pointed out was that if a Feature-Policy allows a particular permission, say "camera", then a jsfiddle page could request and be granted it. Then the user opens another jsfiddle page, which will likely have the same Feature-Policy since it's the same site, and Chrome would have defaulted to saving the granted permission. However, that persistence isn't a good idea on this particular site.

from webappsec-permissions-policy.

igrigorik avatar igrigorik commented on August 21, 2024

Sorry, the issue @noncombatant pointed out was that if a Feature-Policy allows a particular permission, say "camera", then a jsfiddle page could request and be granted it.

Isn't that more of a permissions API question? Sounds like you want to grant a ~one time permission, or some such? I guess it's not clear to me how Feature Policy helps or hinders here.

from webappsec-permissions-policy.

jyasskin avatar jyasskin commented on August 21, 2024

On jsfiddle, whoever writes the path controls what javascript runs, so while the permissions API could let those authors ask for temporary access, it would also let them ask for permanent access. To control the behavior of the authors, there'd need to be a header that the overall server sets.

I don't think this is high priority, but wanted to think about it publicly.

from webappsec-permissions-policy.

igrigorik avatar igrigorik commented on August 21, 2024

Ah, ok.. with you now, thanks for the patience :)

from webappsec-permissions-policy.

raymeskhoury avatar raymeskhoury commented on August 21, 2024

I think this is a really great idea. I agree it's not high priority, but I think it would be a great thing to have (e.g. have a feature which is "persistent permissions"). I never want to persist a decision for jsfiddle :)

from webappsec-permissions-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.