Skip to content

Commit 3132358

Browse files
Merge pull request #1571 from TechnologyEnhancedLearning/TD-6384-MoveUseCorsToAfterUseRouting
Td 6384 Trim trailing slash from Moodle URL
2 parents 933c310 + aa8fda2 commit 3132358

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LearningHub.Nhs.WebUI/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{
4242
options.AddPolicy("MoodleCORS", builder =>
4343
{
44-
builder.WithOrigins(corsMoodleUrl)
44+
builder.WithOrigins(corsMoodleUrl.TrimEnd('/'))
4545
.AllowAnyHeader()
4646
.AllowAnyMethod()
4747
.AllowCredentials();

0 commit comments

Comments
 (0)