jquery - Access-control-allow-origin error when debugging -
i following error when debugging web app in visual studio 2013 express web. app mvc angularjs, jquery, bootstrap. have other web apps work fine , not have error, , i'm not sure resolve this. i've compared web.configs, global.asax, etc projects working.
i can reproduce behavior creating new web project, , select mvc. when debug new project same error.
xmlhttprequest cannot load http://ssl.socialprivacy.org/native/pagehandler.php. 'access-control-allow-origin' header has value 'http://localhost' not equal supplied origin. origin 'http://localhost:54400' therefore not allowed access.
i've seen other question here not solve problem. access-control-allow-origin error
because trying cross domain ajax call. browser block because of same origin policy. if trying make cross domain ajax, should cors in ajax. server should enabled it. method cross domain ajax using jsonp.
Comments
Post a Comment