Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Services
- services.AddCors(options =>
- {
- // this defines a CORS policy called "default"
- options.AddPolicy("default", policy =>
- {
- policy.AllowAnyOrigin()
- .AllowAnyHeader()
- .AllowAnyMethod();
- });
- });
- // Configure()
- app.UseCors("default");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement