Example #1
0
 /// <summary>
 /// Cors attribute
 /// </summary>
 /// <param name="policy"></param>
 public CorsAttribute(CorsPolicy policy)
 {
     _policy = policy ?? throw new ArgumentNullException(nameof(policy));
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="CorsPolicyBuilder"/>.
 /// </summary>
 /// <param name="policy">The policy which will be used to intialize the builder.</param>
 public CorsPolicyBuilder(CorsPolicy policy)
 {
     Combine(policy);
 }