-
Notifications
You must be signed in to change notification settings - Fork 439
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
Enable Ajax calls to external resource #228
Comments
Pretender actually was the reason for this until recently, the relevant PR just got merged. Try updating your Pretender.js to version 0.9.0 in your |
I tried this, but after updating to Pretender 0.9.0 my page doesn't load anymore.I get no errors or warnings, just an empty page. After downgrading to 0.6.0, it works again. (Note that it stops working whenever I use any Pretender version > 0.6.0) |
Ok - I'll have to take a closer look when I have some time. Did the Pretender API change? |
Seems like I found the issue - apparently, Passthrough-Requests only work with jQuery 2.x: It works now after upgrading to jquery 2.1.4 and Pretender 0.9.0. |
I have the same problem. Pretender 0.7.0 is "catching" what it shouldn't catch and after I update it to 0.9.0 - blank screen, nothing works... And I can't switch to jQuery 2.x :-( |
@mydea - I'm not sure if I've tried to reproduce the bug with pure So |
This doesn't appear to be a jquery or pretender issue. I'm pretty sure I have a fix and will be submitting a PR as soon as I test it. Stay tuned. |
@jamesdixon I see that you've tagged this issue in a commit. Can we get an update on what (if anything) needs to be done here? |
* 'master' of https://github.com/jamesdixon/ember-cli-mirage: added support for fqdn's directly in the configuration without using urlPrefix adds support for urlPrefix to allow requests to external resources; fixes miragejs#228
I'm having the same issue here in this issue |
Hi,
I'm using ember-cli-mirage in my app and it works fine so far. However, I need to access an external service (https://www.telize.com/geoip) and fetch data from it. I do not need ember-cli-mirage/pretender to handle this, just ignore it. I tried
this.pretender.get('https://www.telize.com/geoip', this.pretender.passthrough);
But I nevertheless get "Error: Pretender will not respond to requests for URLs.". Am I missing something or is it simply impossible to access external URLs while using ember-cli-mirage?
The text was updated successfully, but these errors were encountered: