OJET — Proxy to Backend REST API Server

1. What is a proxy / proxy server?

2. Why do we need a proxy server?

3. How to solve this issue in a frontend framework?

4. Steps to Install OJET with a proxy to backend:

[sudo] npm install -g @oracle/ojet-cli
ojet create your-First-JET-VDOM-app — template=basic — vdom

4.3. Oracle JET tooling uses Express, a Node.js web app framework, to set up and host the web app when you run ojet serve.

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes
npm install -D http-proxy-middleware

https://localhost/api/<routePath> ==> https://domain-b.com/<routePath>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store