Changeset b62cefc for ChapterX.API


Ignore:
Timestamp:
03/19/26 23:26:14 (4 months ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
acf690c
Parents:
e294f7d
Message:

Added frontend and imporoved AI Suggestions service

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.API/Program.cs

    re294f7d rb62cefc  
    77
    88var builder = WebApplication.CreateBuilder(args);
     9
     10builder.Services.AddCors(options =>
     11{
     12    options.AddPolicy("Frontend", policy =>
     13        policy.WithOrigins("http://localhost:5173", "https://localhost:5173")
     14              .AllowAnyHeader()
     15              .AllowAnyMethod());
     16});
    917
    1018builder.Services.AddControllers();
     
    6775
    6876app.UseHttpsRedirection();
     77app.UseCors("Frontend");
    6978app.UseAuthentication();
    7079app.UseAuthorization();
Note: See TracChangeset for help on using the changeset viewer.