mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Update Startup.cs
This commit is contained in:
@@ -135,7 +135,9 @@ namespace ArchiSteamFarm.IPC {
|
||||
services.AddResponseCompression();
|
||||
|
||||
// Add CORS to allow userscripts and third-party apps
|
||||
services.AddCors(options => options.AddDefaultPolicy(policyBuilder => policyBuilder.AllowAnyOrigin()));
|
||||
if (!string.IsNullOrEmpty(ASF.GlobalConfig.IPCPassword)) {
|
||||
services.AddCors(options => options.AddDefaultPolicy(policyBuilder => policyBuilder.AllowAnyOrigin()));
|
||||
}
|
||||
|
||||
// Add swagger documentation generation
|
||||
services.AddSwaggerGen(
|
||||
|
||||
Reference in New Issue
Block a user