@maboiteaspam/minus-x-frame-origin

1.0.2 • Public • Published

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

Package Sidebar

Install

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

Weekly Downloads

1

Version

1.0.2

License

WTF

Last publish

Collaborators

  • maboiteaspam