Access-Control-Allow-Origin error sending a jQuery Post to Google API's

前端 未结 7 1725
小蘑菇
小蘑菇 2020-11-22 14:04

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 a

7条回答
  •  Happy的楠姐
    2020-11-22 14:38

    I had exactly the same issue and it was not cross domain but the same domain. I just added this line to the php file which was handling the ajax request.

    
    

    It worked like a charm. Thanks to the poster

提交回复
热议问题