Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Proxy problem: I am proxing ionic 4.12 project => ionic 3's proxy project. Meaning using 2 proxies. I want to rely only on 1 proxy. How to solve that?

$
0
0

@helenakohan wrote:

Hi:

I am currently developing on an ionic 4.12 project and the proxy there gives me hard time.

So i decided to create an ionic 3 app and use its proxy which works great.

So basically the ionic 4 proxy points to ionic 3 proxy localhost:8101, which points to the website api url.

The ionic 4 uses proxy.conf.json:

{
“/api/*”: {
“target”: “http://localhost:8101/”,
“changeOrigin”: true,
“secure”: false,
“logLevel”: “debug”
}
}

ionic 3 (ionic.conf.json):
{
“name”: “app”,
“integrations”: {},
“type”: “ionic-angular”,
“proxies”: [
{
“path”: “/api”,
“proxyUrl”: “https://www.siteurl.com/api
}
]
}

I am using pouchdb over couchdb server.

How to make 1 proxy only using ionic 4 with proxy.conf.json?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>