Commit 64f73a76 authored by Almouhannad's avatar Almouhannad

(B) Add CORS

parent 2ddc9eb6
......@@ -126,6 +126,13 @@ if (app.Environment.IsDevelopment())
app.UseHttpsRedirection();
#region CORS
// TODO: Configure allows
app.UseCors(policy => policy.AllowAnyHeader().AllowAnyMethod().AllowAnyHeader().AllowAnyOrigin());
#endregion
app.UseAuthentication();
app.UseAuthorization();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment