security - Ajax giving Acess Denied error -
security - Ajax giving Acess Denied error -
i trying ajax request 192.158.110.129:5000 (flask webserver), while whole website served 192.168.110.129:8080(apache). access denied error in browsers . how can resolve ? need understand whats happening , can prepare . document.domain="192.168.110.129" in firefox . think cross site script injection security measure can clarify ?
there isn't much code can show using api's. this. have html textarea loaded ckeditor script . access through apache . spell checking modified plugin , sending request flash web server .
request = "192.158.110.129:5000?data=data" var data=ckeditor.ajax.load(request);
this doesn't through .
so file serving through apache , ajaxing flash server python action . someone suggested 'proxy' or jsonp solutions . can read on that ?
xhr requests restricted same-origin policy allows requests within same origin due security reasons. 192.168.110.129 allowed send xhr requests 192.168.110.129 not 192.158.110.129.
changing document.domain
doesn’t help here. besides allowed utilize proper (super-) domain foo.example.com
, bar.example.com
agree on example.com
, dom access , not xhr requests.
an extension xhr cross-origin resource sharing allows cross-origin requests under specific conditions. 1 status receiving site authorizes requests scripts site. done access-control-allow-origin response header field. can either contain list of allowed origins or *
wildcard.
so seek send access-control-allow-origin: *
on 192.158.110.129 machine.
ajax security web
Comments
Post a Comment