nginx - Web API Service Error - Cross-Origin Request Blocked -
nginx - Web API Service Error - Cross-Origin Request Blocked -
my windows web api service running on linux (nginx http server) fastcgi mono server.
when clients seek invoke web api service's methods, see next error message in response:
cross-origin request blocked: same policy disallows reading remote resource @ http://localhost:5757/service.asmx/heartbeat?. can fixed moving resource same domain or enabling cors.
my nginx virtual host config file:
server { hear 5757; server_name localhost; root /var/www/webservices/myservice; access_log /var/log/nginx/myservice.access.log; location / { index index.html index.htm default.aspx default.aspx; fastcgi_index default.aspx; fastcgi_pass 127.0.0.1:9002; include /etc/nginx/fastcgi_params; } }
i confused how overcome problem???
because on localhost tested methods , of them work pretty well.
how enable cors , steps should take, if cause? because working nginx 2 weeks.
update:
this service's address:
http://217.11.176.115:5757/service.asmx
if open firefox , invoke heartbeat method, can see error message firebug.
web-services nginx fastcgi-mono-server
Comments
Post a Comment