xfo-whitelist

0.1.0 • Public • Published

xfo-whitelist

Connect/Express middleware to apply X-Frame-Options based on a whitelist

Quick start

Install using npm: npm install --save xfo-whitelist

Include the module inside your application:

var express = require("express"),
    xfo = require("xfo-whitelist"),
 
var app = express();
 
// Add X-Frame-Options: DENY to all requests but "/embed.html"
app.use(xfo(["/embed.html"]));
app.use(express.static(__dirname + "/public"));
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    1

Package Sidebar

Install

npm i xfo-whitelist

Weekly Downloads

1

Version

0.1.0

License

Apache-2.0

Last publish

Collaborators

  • jbuck