Click here to Skip to main content
15,906,081 members

Comments by Sachin11089 (Top 2 by date)

Sachin11089 25-Jun-19 4:53am View    
Hi,

I have searched in google and found below solution.I have added below line in global.asax file of Web api project.

if (HttpContext.Current.Request.HttpMethod == "OPTIONS")
{
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Methods",
"GET, POST, PUT, DELETE");
HttpContext.Current.Response.AddHeader("Access-Control-Allow-Headers",
"Content-Type, Accept");
HttpContext.Current.Response.End();
}
Sachin11089 9-Sep-12 10:46am View    
what if i keeps the table in the Master Database...any solution from Ur Side..