Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

jeff-ong/authenticated-mirror-server

Repository files navigation

authenticated-mirror-server

GitHub license Known Vulnerabilities

NPM

A local server that mirrors your protected production API endpoints. It lets you connect your local app to your remote server with protected request header.

Get started

  • cp .env.template .env
  • npm start

Inside .env, define the credentials required for making requests to the your endpoints. The default port is 8888. After you have finished setting up the .env, run npm start, then you will have a local proxy up and running on http://localhost:[PORT]

Next, you will have to update your app to make requests to http://localhost:[PORT] instead in your local development environment.

Unit test

This module uses Jest and Supertest to perform a quick async unit test on the Node server.

npm test

About

A simple proxy server to overcome CORS issue for localhost environment

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published