Changeset b62cefc for ChapterX.API/Program.cs
- Timestamp:
- 03/19/26 23:26:14 (4 months ago)
- Branches:
- main
- Children:
- acf690c
- Parents:
- e294f7d
- File:
-
- 1 edited
-
ChapterX.API/Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.API/Program.cs
re294f7d rb62cefc 7 7 8 8 var builder = WebApplication.CreateBuilder(args); 9 10 builder.Services.AddCors(options => 11 { 12 options.AddPolicy("Frontend", policy => 13 policy.WithOrigins("http://localhost:5173", "https://localhost:5173") 14 .AllowAnyHeader() 15 .AllowAnyMethod()); 16 }); 9 17 10 18 builder.Services.AddControllers(); … … 67 75 68 76 app.UseHttpsRedirection(); 77 app.UseCors("Frontend"); 69 78 app.UseAuthentication(); 70 79 app.UseAuthorization();
Note:
See TracChangeset
for help on using the changeset viewer.
