[Add] Support for Feature-Policy header - #44
Conversation
Codecov Report
@@ Coverage Diff @@
## master #44 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 13 14 +1
Lines 208 234 +26
Branches 85 95 +10
=========================================
+ Hits 208 234 +26
Continue to review full report at Codecov.
|
|
Thank you for your pull request😃 This feature will be merged in v2.2.0. |
|
@JackPoteYes For example: createSecureHeaders({ permissionsPolicy: xxx });
// => { "Feature-Policy": "xxx", "Permissions-Policy": "xxx" };Also, I agree to support these headers because of your reasons, but basically, I don't want to support draft and unstable specifications to next-secure-headers. So I think What do you think? This feature will be released in v2.3.0. |
|
Hi @jagaapple Thanks! |
New Features
Feature-PolicyheaderChanges and Fixes
None
Refactors
None
Header options
Options are typed, which means all the directives will be suggested by IntelliSense.
Configuration options are of the following structure:
Example:
Will return the following header: