Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yosuke-furukawa/feature-policy
Feature Policy HTTP Header middleware
https://github.com/yosuke-furukawa/feature-policy
Last synced: about 1 month ago
JSON representation
Feature Policy HTTP Header middleware
- Host: GitHub
- URL: https://github.com/yosuke-furukawa/feature-policy
- Owner: yosuke-furukawa
- Created: 2018-10-11T09:26:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:41:39.000Z (11 months ago)
- Last Synced: 2024-09-12T20:09:45.094Z (2 months ago)
- Language: HTML
- Size: 1.99 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Feature Policy
This module adds a `Feature-Policy` http header.
# install
```
$ npm i node-feature-policy
```# usage
```
const express = require('express');
const featurePolicy = require('node-feature-policy');
const app = express();app.use(featurePolicy({
"lazyload": "'none'",
"document-write": "'none'",
"sync-xhr": "'none'",
"legacy-image-formats": "'none'",
}));
app.use(express.static('public'));
app.listen(3000);
```