How can enable cross origin using nHttp
Hi we are using the project and with own request this work correctly, now when start the server and call a function from another page appear error of cross origin.
The library have the property of enable the cross origin for the request?

Also try this form, but not sure if is correctly:
e.Response.ContentType = "application/json"; e.Response.Headers.Add("Access-Control-Allow-Origin", "*"); e.Response.Headers.Add("Access-Control-Allow-Methods", "GET, POST"); e.Response.Headers.Add("Access-Control-Allow-Headers", "Content-Type");
Hi,
Try add this:
e.Request.Headers.Add("Access-Control-Allow-Origin", "*"); e.Request.Headers.Add("Access-Control-Allow-Methods", "GET, POST"); e.Request.Headers.Add("Access-Control-Allow-Headers", "Content-Type");
Hi ,i also had the same issue what helped me is the following:
e.Response.Headers.Add("Access-Control-Allow-Origin", "*");
e.Response.Headers.Add("Access-Control-Allow-Methods", "GET, POST");
e.Response.Headers.Add("Access-Control-Allow-Headers", "Content-Type");
hope it helps