Ignore:
Timestamp:
06/23/26 17:20:47 (12 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
99c1e45
Parents:
b373fea
Message:

Fixed user profile and reading lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.API/Program.cs

    rb373fea r0b502c2  
    99
    1010var jwtKey = builder.Configuration["Jwt:Key"];
    11 if (string.IsNullOrWhiteSpace(jwtKey) || jwtKey.StartsWith("change-this"))
     11if (string.IsNullOrWhiteSpace(jwtKey))
    1212    throw new InvalidOperationException("Jwt:Key is not configured. Set it via environment variable DOTNET_Jwt__Key before starting the application.");
    1313
     
    1717        policy.WithOrigins("http://localhost:5173", "https://localhost:5173")
    1818              .AllowAnyHeader()
    19               .AllowAnyMethod());
     19              .AllowAnyMethod()
     20              .AllowCredentials());
    2021});
    2122
Note: See TracChangeset for help on using the changeset viewer.