This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CorsHandler : DelegatingHandler | |
{ | |
private const string _trustedRegex = @"((https?\:\/\/)?(.+\.)?thisismydomain\.com)|((https?\:\/\/)?localhost:[\d]+)"; | |
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) | |
{ | |
// runs before controller | |
var response = base.SendAsync(request, cancellationToken); | |
// runs after controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Servers (repeat as many times as needed) | |
Name: | |
IP Address(es): | |
Environment: [Development, Test, User Acceptance, Production] | |
Role(s): [Web Server, Database, Failover, etc] | |
Host Names: [If a web site or web services, what url(s) are used to get here] | |
Server Version: [Windows Server 2003, Windows Server 2008, 2008 R2, Red Hat Enterprise, etc] | |
Installed Software/Version: [Sql Server 2008 R2, .NET {versions}, PHP, JRE, MSMQ, IIS6, IIS7, etc] | |
Environment Configuration: [Any non “out of the box” configurations for Windows, IIS, SQL, etc] |