thesaurus & dictionary > Support > Origin now allowed |
User | Post |
---|---|
Neil Bowers 1 post(s) |
I'm creating an application which uses this service, and testing it on my local machine. But when I try and use the thesaurus I get told: I'm using jQuery to make an ajax call to your service. This seems a strange restriction, as I'm basically using the thesaurus API the way I imagine many people would want to ... Cheers, Neil |
14-Dec-12, 14:15:05 | Rispondi | Citazione | Report spam |
admin 145 post(s) Web site |
Hi Neil, the server side does not generate such error, it's your browser that is blocking your code with jQuery due to cross-domain security issues. I've noticed that a new HTTP header might be generated by the server (Access-Control-Allow-Origin: *) to allow such cross-domain queries, but before inserting this new header I have to check if such header could cause security issues in my service. Regards |
14-Dec-12, 19:19:18 | Rispondi | Citazione | Report spam |
Andy Cole 1 post(s) |
Any update on this issue? I'm experiencing a similar problem accessing the API via JS |
14-May-13, 15:29:05 | Rispondi | Citazione | Report spam |
admin 145 post(s) Web site |
I have updated the HTTP response with "Access-Control-Allow-Origin", but only if the HTTP request is performed using the optional parameter "callback" as described here: http://thesaurus.altervista.org/testjs |
14-May-13, 19:03:22 | Rispondi | Citazione | Report spam |