Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Bahanix
Copy link
Contributor

@Bahanix Bahanix commented Nov 14, 2020

HTTP Feature-Policy has been renamed to Permissions-Policy:

According to archive.org, Mozilla documentation has been updated July 14th, 2020:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Feature-Policy

This PR ports this renaming into Rails.

cc. @jacobbednarz who authored the feature.

Copy link
Contributor

@DNNX DNNX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by typo fixes.

@fxn fxn merged commit 26fd55e into rails:master Nov 18, 2020
@fxn
Copy link
Member

fxn commented Nov 18, 2020

Thanks! ❤️

@p8
Copy link
Member

p8 commented Nov 19, 2020

@Bahanix The permissions-policy also changed the format of the data to a structured header:
w3c/webappsec-permissions-policy#383

So the following:

 "usb 'self'; autoplay https://example.com; payment https://secure.example.com" 

Would need to change to

   "usb=(self), autoplay=(https://example.com), payment=(https://secure.example.com)" 

@Bahanix Bahanix deleted the permissions-policy branch November 19, 2020 14:48
@p8
Copy link
Member

p8 commented Nov 19, 2020

I've created a PR to use the old name for the header for now. #40652

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants