🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@maboiteaspam/minus-x-frame-origin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maboiteaspam/minus-x-frame-origin

http proxy to temper response headers

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
3
-62.5%
Maintainers
1
Weekly downloads
 
Created
Source

minus-x-frame-origin

http proxy to temper response headers

Install

npm i @maboiteaspam/minus-x-frame-origin --save-dev

Usage


    @maboiteaspam/minus-x-frame-origin 1.0.0
    http proxy to temper response headers

    Usage
        minus-x-frame-origin [opts] [headers to delete...]

    Options
        -v|--verbose          verbose
        -h|--help             show help
        -b|--bind             address to bind such localhost:3000
        -d|--delete           headers to delete

    Examples
        minus-x-frame-origin -v
        minus-x-frame-origin -h
        minus-x-frame-origin -b localhost:3000
        minus-x-frame-origin -b localhost:3000 x-frame-origin X-Powered-By

API

minus-x-frame-origin is a function (bind, toDelete) which returns a node http server

bind is a parameter of type string such 127.0.0.1:6666.

toDelete is a parameter of type array, it must contains a list of response headers to delete such ['x-frame-origin'].

    require('@maboiteaspam/minus-x-frame-origin')('localhost:3000', ['X-GitHub-Request-Id'])
      .on('error', console.error)
      .on('listening', function () {
        console.log('proxy is up at localhost:3000')
      })

Read More

Keywords

http

FAQs

Package last updated on 23 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts