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
Post a Comment