-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ionic Proxy Ignored #10
Comments
Oooh okay. I haven't worked with Ionic Proxies much. I'll try and reproduce locally this weekend and see if we can find a fix. Thank you for following the bug format! Much appreciated |
I also have this issue |
Sorry peeps I've been super slammed. I've got some visibility on this and there were some recent changes to the CLI. I'll be updating these to 3.0+ soonish. (Though PRs are always welcome ;D) |
Thats great news, looking forward to it Or happy to learn, if you can point us in the right direction etc. Add me on skype: matt.hiscock as may be able to additional assist in other ways,........ |
**Polyonic version: v0.3.0
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
I have an ionic proxy set up in ionic.config.json it is used for when using ionic in a browser, currently Polyonic is ignoring any proxy i put in that file.
If i console log the error i get
http://127.0.0.1:3000/proxy/api/v1/auth 404 (Not Found)
If i completely remove my proxy I get a CORS issue caused by running a server locally.
Related code:
This is my remote provider
constructor(public http:Http, public platform:Platform, private device:Device) {
platform.ready().then(() => {
console.log(platform.platforms());
if (this.device.uuid === 'browser') {
this.domain = '/proxy';
}
});
}
ionic.conifg.json
"proxies": [
{
"path": "/proxy",
"proxyUrl": "http://www.mywebsite.co.uk"
}
]
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):ordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.2
Xcode version: Not installed
The text was updated successfully, but these errors were encountered: