Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public async Task Options_WrongPathCannotPinCorsPolicy()
using var client = new HttpClient(new HttpClientHandler { AllowAutoRedirect = false });
using var wrongPathRequest = new HttpRequestMessage(
HttpMethod.Options,
new Uri(gateway.Endpoint.GetLeftPart(UriPartial.Authority) + "/"));
new Uri(gateway.Endpoint, "wrong-path"));
wrongPathRequest.Headers.Add("Origin", "http://127.0.0.1:5001");

using HttpResponseMessage wrongPathResponse = await client.SendAsync(wrongPathRequest, TestContext.CancellationToken);
Expand Down
Loading