Changeset 0b502c2 for ChapterX.API/Program.cs
- Timestamp:
- 06/23/26 17:20:47 (12 days ago)
- Branches:
- main
- Children:
- 99c1e45
- Parents:
- b373fea
- File:
-
- 1 edited
-
ChapterX.API/Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.API/Program.cs
rb373fea r0b502c2 9 9 10 10 var jwtKey = builder.Configuration["Jwt:Key"]; 11 if (string.IsNullOrWhiteSpace(jwtKey) || jwtKey.StartsWith("change-this"))11 if (string.IsNullOrWhiteSpace(jwtKey)) 12 12 throw new InvalidOperationException("Jwt:Key is not configured. Set it via environment variable DOTNET_Jwt__Key before starting the application."); 13 13 … … 17 17 policy.WithOrigins("http://localhost:5173", "https://localhost:5173") 18 18 .AllowAnyHeader() 19 .AllowAnyMethod()); 19 .AllowAnyMethod() 20 .AllowCredentials()); 20 21 }); 21 22
Note:
See TracChangeset
for help on using the changeset viewer.
