I read a lot for the
'Access-Control-Allow-Origin' error, but I don't understand what I have to fix
:(
I'm playing with Google Moderator API, but
when I try to href="http://code.google.com/apis/moderator/v1/using_rest.html#CreatingSeries"
rel="noreferrer">add new serie I
receive:
XMLHttpRequest cannot
load
https://www.googleapis.com/moderator/v1/series?key=[key]
&data%5Bdescription%5D=Share+and+rank+tips+for+eating+healthily+on+the+cheaps!
&data%5Bname%5D=Eating+Healthy+%26+Cheap
&data%5BvideoSubmissionAllowed%5D=false.
Origin [my_domain] is not allowed by
Access-Control-Allow-Origin.
I
tried with and without callback parameter, I tried to add 'Access-Control-Allow-Origin
*' to the header. And I don't know how to use $.getJSON here, if apply, because I have
to add the Authorization header and I don't know how to do it without beforeCall from
$.ajax :/
Any light for this darkness
u.u?
That's the
code:
No comments:
Post a Comment