I have created a proxy server in my nodejs application using http-proxy package to solve mixed content issue as my front-end is running on https and back-end is on http
But i am not able to understand how can i call the proxy server URL or IP in my front end appication or what will be the url of proxy server
Now in below my backend server is running on this url http://localhost:5000 but how can i access my proxy server url
How do i call my api's now in my front end appication
const http = require("http");
const httpProxy = require("http-proxy");
const PORT = 5000;
httpProxy.createProxyServer({ target: "http://localhost:5000" }).listen(PORT); ```
Aucun commentaire:
Enregistrer un commentaire