allow cross site acces from file:///

This commit is contained in:
Florian Lang
2017-08-15 11:24:32 +02:00
parent 7fe0b4499b
commit 495b7594f9

View File

@@ -121,7 +121,7 @@ namespace ArchiSteamFarm {
string response = await bot.Response(Program.GlobalConfig.SteamOwnerID, command).ConfigureAwait(false);
ASF.ArchiLogger.LogGenericInfo(string.Format(Strings.IPCAnswered, command, response));
context.Response.AppendHeader("Access-Control-Allow-Origin", "null");
await context.Response.WriteAsync(HttpStatusCode.OK, response).ConfigureAwait(false);
break;
}