CORS with webapi asp.net and OData using breeze -


i have project in have enabled cors

httpcontext.current.response.addheader("access-control-allow-origin", "http://localhost:63736");         httpcontext.current.response.addheader("access-control-allow-methods", "post,get,delete,patch,put,options");         httpcontext.current.response.addheader("access-control-allow-headers", "content-type, authorization, accept,www-authenticate"); 

call .../api/login passed ok using jquery how ever when trying query odata breeze cors error

xmlhttprequest cannot load http://localhost:53809/odata/metadata. origin http://localhost:63736 not allowed access-control-allow-origin.  

how come?

ward posts information on cors in post: using breeze webapi service domain

take @ first , see if solves problem.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -