DyadicGit / proxy-server-example

proxy server that modifies headers (adds CORS) for a "helloWorld" api server, used in a basic front-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

a proxy server that modifies headers (adds CORS) for a "helloWorld" api server, used in a basic front-end

  • the api server is on port 5000
  • api is "/hello"
  • the proxy server is on port 8000
  • the proxy server adds CORS header + one custom header
  • the front-end app calls the localhost:8000/hello, because it uses CORS headers that's it

About

proxy server that modifies headers (adds CORS) for a "helloWorld" api server, used in a basic front-end


Languages

Language:JavaScript 85.9%Language:HTML 14.1%