xhrproxy

0.0.4 • Public • Published

A simple tool to add Access-Control-Allow-Origin: * response headers when developing an application locally, but connecting to remote API's.

Installation

# npm install -g xhrproxy

Usage

Serve all request from a remote server locally, appending an "Access-Control-Allow-Origin: *" header.
Usage: xhrproxy --server [remote address] --port [5050|local port]

Options:
  -s, --server  Remote server address
  -p, --port    Local port           
  --server                             [required]
  --port                               [default: 5050]

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i xhrproxy

    Weekly Downloads

    0

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • jayproulx