mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-10-27 11:01:16 +00:00
Update WelsonJS.Toolkit/WelsonJS.Launcher/ResourceServer.cs
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
8ab70208d0
commit
6e499bcedf
|
|
@ -521,10 +521,10 @@ namespace WelsonJS.Launcher
|
|||
}
|
||||
|
||||
if (allowed.Contains(origin, StringComparer.OrdinalIgnoreCase))
|
||||
if (allowed.Contains(origin, StringComparer.Ordinal))
|
||||
{
|
||||
respHeaders["Access-Control-Allow-Origin"] = origin;
|
||||
respHeaders["Access-Control-Allow-Credentials"] = "true";
|
||||
respHeaders["Vary"] = "Origin";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user