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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -