Enabled CORS
This commit is contained in:
parent
26de83bc8a
commit
d3f93dbaaf
|
@ -21,6 +21,13 @@ app.UseHttpsRedirection();
|
|||
|
||||
app.UseAuthorization();
|
||||
|
||||
app.UseCors(builder =>
|
||||
{
|
||||
builder.AllowAnyOrigin()
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader();
|
||||
});
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
//app.Run("http://192.168.0.57:3045"); //Linux Server
|
||||
|
|
Loading…
Reference in New Issue
Block a user