{"_id":"x-frame-options","_rev":"6-2bef8ca5a144d291beec7b815d770673","name":"x-frame-options","description":"Express middleware to add an X-Frame-Options response header","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"x-frame-options","version":"0.0.0","description":"Express middleware to add an X-Frame-Options response header","author":{"name":"Dom Harrington","email":"dom@harrington-mail.com"},"main":"index.js","scripts":{"lint":"./node_modules/.bin/jshint .","pretest":"npm run-script lint","test":"./node_modules/.bin/_mocha -- -R spec -r should test.js","prepublish":"npm test && npm prune"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"keywords":["x-frame-options","security","middleware","express"],"license":"BSD-2-Clause","devDependencies":{"should":"~2.1.0","supertest":"~0.8.1","mocha":"~1.14.0","express":"~3.4.4","jshint":"~2.3.0"},"_id":"x-frame-options@0.0.0","dist":{"shasum":"3bbd9ac6ced8cb3aaf9f2555edce773918fe1e10","tarball":"https://registry.npmjs.org/x-frame-options/-/x-frame-options-0.0.0.tgz","integrity":"sha512-/SzDIeOG03+M+zUZi/uoi8ppfDOyS6Zl34xZPP4+VUgZzUBdeySXLjE6FImpp224/t7CVlz1k9D5mhIDPpPQtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC03hQaZ4XP+tl0lFG4+XPxInwcqsRXh/hTssvGVUMZLwIhAKsdHjrpPIGhwKKmG20DTEItC8brfRE1aAY9L6doCVtJ"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"domharrington","email":"dom@harrington-mail.com"},"maintainers":[{"name":"domharrington","email":"dom@harrington-mail.com"}]},"1.0.0":{"name":"x-frame-options","version":"1.0.0","description":"Express middleware to add an X-Frame-Options response header","author":{"name":"Dom Harrington","email":"dom@harrington-mail.com"},"repository":{"type":"git","url":"git@github.com:domharrington/x-frame-options"},"main":"index.js","scripts":{"lint":"jshint .","pretest":"npm run-script lint","test":"_mocha -- -R spec -r should test.js","prepublish":"npm test && npm prune"},"publishConfig":{"registry":"http://registry.npmjs.org/"},"keywords":["x-frame-options","security","middleware","express"],"license":"BSD-2-Clause","devDependencies":{"should":"~2.1.0","supertest":"~0.8.1","mocha":"~1.14.0","express":"~3.4.4","jshint":"~2.3.0"},"gitHead":"2c6d277df95ea5f9b3af9d616f915afddfeca445","bugs":{"url":"https://github.com/domharrington/x-frame-options/issues"},"homepage":"https://github.com/domharrington/x-frame-options","_id":"x-frame-options@1.0.0","_shasum":"ff9c1ca944b916a9bc27d6672a8b39b5b08b427f","_from":".","_npmVersion":"2.5.0","_nodeVersion":"0.10.33","_npmUser":{"name":"domharrington","email":"dom@harrington-mail.com"},"maintainers":[{"name":"domharrington","email":"dom@harrington-mail.com"}],"dist":{"shasum":"ff9c1ca944b916a9bc27d6672a8b39b5b08b427f","tarball":"https://registry.npmjs.org/x-frame-options/-/x-frame-options-1.0.0.tgz","integrity":"sha512-ytLXSudorb5McRtkeaTn4LFz+BRTF0vPrk325jqNxQ2L9vO2rlYurzvj0d7rY3KMCVJNCfblOHRQh91EsRVxaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpiEcaN8G38+PNiWBCanlRKw11+GxRyKnJpxUTu9Je4wIhAOE2qnPprmlpW4pae0S6oeRsGSioxsM1iP49cq3gsqUF"}]}}},"readme":"# x-frame-options express middleware\n\nExpress middleware to add an X-Frame-Options response header\n\n[![build status](https://secure.travis-ci.org/domharrington/x-frame-options.png)](http://travis-ci.org/domharrington/x-frame-options)\n\nThe X-Frame-Options header can be used to to indicate whether a browser is allowed to render a page within an `<iframe>` element or not.\nThis is helpful to prevent clickjacking attacks by ensuring your content is not embedded within other sites.\nSee more here: [https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options](https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options).\n\n## Example\n``` js\n  var express = require('express')\n  var app = express()\n  var xFrameOptions = require('x-frame-options')\n\n  app.use(xFrameOptions())\n\n  app.get('/', function (req, res) {\n    res.get('X-Frame-Options') // === 'Deny'\n  })\n\n  app.listen(3000)\n```\n\n## Usage\n``` js\n  var xFrameOptions = require('x-frame-options')\n```\n\n### var middleware = xFrameOptions(headerValue = 'Deny')\n\nReturns an express middleware function. Allows you to specify the value of the header, defaults to 'Deny' for the strongest protection.\n\n## Installation\n\n    npm install x-frame-options --save\n\n## Credits\n[Dom Harrington](https://github.com/domharrington/)\n\n## License\nLicensed under the [New BSD License](http://opensource.org/licenses/bsd-license.php)\n","maintainers":[{"name":"domharrington","email":"dom@harrington-mail.com"}],"time":{"modified":"2022-06-29T04:34:30.008Z","created":"2013-11-24T19:19:44.031Z","0.0.0":"2013-11-24T19:19:45.103Z","1.0.0":"2015-05-12T09:45:16.545Z"},"author":{"name":"Dom Harrington","email":"dom@harrington-mail.com"},"homepage":"https://github.com/domharrington/x-frame-options","keywords":["x-frame-options","security","middleware","express"],"repository":{"type":"git","url":"git@github.com:domharrington/x-frame-options"},"bugs":{"url":"https://github.com/domharrington/x-frame-options/issues"},"license":"BSD-2-Clause","readmeFilename":"README.md"}