From enable-cors.org:
CORS on ASP.NET
If you don’t have access to configure IIS, you can still add the header through ASP.NET by adding the following line to your source pages:
Response.AppendHeader("Access-Control-Allow-Origin", "*");
More Related Contents:
- Cannot open database “test” requested by the login. The login failed. Login failed for user ‘xyz\ASPNET’
- How to force HTTPS using a web.config file
- An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
- The breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight application
- Why is HttpContext.Current null?
- Changing project port number in Visual Studio 2013
- Can you prevent your ASP.NET application from shutting down?
- Check ssl protocol, cipher & other properties in an asp.net mvc 4 application
- How can I secure passwords stored inside web.config?
- Share Session between two web sites using asp.net and state server
- IIS app pool recycle + quartz scheduling
- I’ve been hacked. Evil aspx file uploaded called AspxSpy. They’re still trying. Help me trap them‼
- Leverage browser caching in IIS (google pagespeed issue)
- Handler “ExtensionlessUrlHandler-Integrated-4.0” has a bad module “ManagedPipelineHandler” in its module list
- Error 500.19 with 0x8007000d when running ASP.NET Core app in IIS despite AspNetCoreModule being installed
- Could not load file or assembly ‘System.Web.Helpers, error on IIS 8
- Can I reuse HttpWebRequest without disconnecting from the server?
- Filehandler in asp.net
- When to use Request.Cookies over Response.Cookies?
- How to update querystring in C#?
- Read a Registry Key
- Find a control on a page with a master page
- SignalR – Checking if a user is still connected
- Get a list of all tree nodes (in all levels) in TreeView Controls
- Text on an Image button in c# asp.net 3.5
- Specify Date format in MVC5 (dd/MM/yyyy)
- Can’t find how to use HttpContent
- Get first element from a dictionary
- LINQ to Entities does not recognize the method ‘System.String ToString()’ method in MVC 4
- Amazon SES Email address is not verified