Hi zombie.js users !
I'm working on a new kind of website essentialy developed in javascript (client and server side).
I've made an API on my server, and of course this API has it's own domain name... which is different from my website !
So when i'm trying to make an ajax request to my API i've got an excellent error which tell me i can't make cross domain request...
So, i ran through the source code and i've found THE file and THE line to edit !
In : /node_modules/zombie/lib/zombie/xhr.js
84 -- if (url.host !== this._window.location.host) {
85 -- throw new HTML.DOMException(HTML.SECURITY_ERR, "Cannot make request to different domain");
86 -- }
You just have to comment the line 85 and it'll work ;)
I'm posting this message because i don't have any github account and it took me half a day to not found the answer on google.
Maybe this can help other zombie users ;)
Have a nice day, and thanks zombie team for your script ;)