-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #136 (cross domain requests)
As far as I can tell the hack originally suggested by @dcneiner is the best way to do this. The problem is that we still pass our mock XHR object to jQuery and it still sees the mismatched domains and forces an actual HTTP request using a script tag. Instead, we have to explicitly tell jQuery not to do so. We can safely set this all the time, because if we're mocking, we never want to send a cross-domain request. Thanks to @LeopoldoFu and @r4j4h for keeping on this one.
- Loading branch information
Showing
2 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters