diff --git a/SafeExamBrowser.Server/Parser.cs b/SafeExamBrowser.Server/Parser.cs index c2575c62..3ed53020 100644 --- a/SafeExamBrowser.Server/Parser.cs +++ b/SafeExamBrowser.Server/Parser.cs @@ -17,6 +17,7 @@ using Newtonsoft.Json.Linq; using SafeExamBrowser.Logging.Contracts; using SafeExamBrowser.Server.Contracts.Data; using SafeExamBrowser.Server.Data; +using SafeExamBrowser.Server.Requests; namespace SafeExamBrowser.Server { @@ -111,7 +112,7 @@ namespace SafeExamBrowser.Server try { - var hasHeader = response.Headers.TryGetValues("SEBExamSalt", out var values); + var hasHeader = response.Headers.TryGetValues(Header.APP_SIGNATURE_KEY_SALT, out var values); if (hasHeader) { @@ -132,7 +133,7 @@ namespace SafeExamBrowser.Server try { - var hasHeader = response.Headers.TryGetValues("SEBConnectionToken", out var values); + var hasHeader = response.Headers.TryGetValues(Header.CONNECTION_TOKEN, out var values); if (hasHeader) { diff --git a/SafeExamBrowser.Server/Requests/Header.cs b/SafeExamBrowser.Server/Requests/Header.cs index 92af3945..8ff3828b 100644 --- a/SafeExamBrowser.Server/Requests/Header.cs +++ b/SafeExamBrowser.Server/Requests/Header.cs @@ -11,6 +11,7 @@ namespace SafeExamBrowser.Server.Requests internal static class Header { internal const string ACCEPT = "Accept"; + internal const string APP_SIGNATURE_KEY_SALT = "SEBExamSalt"; internal const string AUTHORIZATION = "Authorization"; internal const string CONNECTION_TOKEN = "SEBConnectionToken"; }