Skip to content
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

Change default request handling #1092

Open
georges-g opened this issue Oct 13, 2023 · 1 comment
Open

Change default request handling #1092

georges-g opened this issue Oct 13, 2023 · 1 comment

Comments

@georges-g
Copy link

I am using Miragejs in a Svelte project. Recently, I integrated Google Maps in the project and I could not have it working.

It took me a while to understand that it came from Miragejs blocking the requests. You can check the stackoverflow issue about this.

I understand there is a passthrough option, but I do not think this is a good default behavior as it is counter intuitive.
IMO, by default, Miragejs should not intercept any request except the ones explicitly defined in the routes.

If you don't agree with this, at least please add an option to allow any request to the current domain and to other-origin hosts. At the moment, for other-origin hosts, you need to do it so manually if I understood properly the docs.

@acorncom
Copy link
Contributor

Just found this issue, I hit the same problem on an Ember project using MirageJS and Google Maps. Looks like there were changes last fall on Google's side of things that led to these snags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants