Skip to content

Commit 208e3b3

Browse files
authored
Merge pull request #214 from AndrewCS149/testWorkflow
testWorkflow
2 parents c635d38 + e9010fe commit 208e3b3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ public static void Main(string[] args)
2020

2121
var builder = WebApplication.CreateBuilder(args);
2222

23+
// --------------------- CORS POLICY ------------------------------
24+
builder.Services.AddCors(options =>
25+
{
26+
options.AddPolicy("AllowSpecificOrigin", b => b.WithOrigins("https://andrewtest.org").AllowAnyHeader().AllowAnyMethod());
27+
});
28+
2329
// Add services to the container.
2430
builder.Services.AddSwaggerGen(c =>
2531
{

0 commit comments

Comments
 (0)