Skip to content

Instantly share code, notes, and snippets.

@rehrumesh
Created July 5, 2020 10:16
Show Gist options
  • Select an option

  • Save rehrumesh/bb4950b007915b156797c4ae04cf88ff to your computer and use it in GitHub Desktop.

Select an option

Save rehrumesh/bb4950b007915b156797c4ae04cf88ff to your computer and use it in GitHub Desktop.

Revisions

  1. rehrumesh created this gist Jul 5, 2020.
    6 changes: 6 additions & 0 deletions setupProxy.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    module.exports = (app) => {
    app.use((req, res, next) => {
    res.header("Access-Control-Allow-Origin", "*");
    next();
    });
    };