mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
SSL transitions from https to http should not be forced on Ajax requests, as they can result in mixed security, and cross-domain failures.
This commit is contained in:
@@ -53,7 +53,8 @@ namespace Orchard.SecureSocketsLayer.Filters {
|
||||
|
||||
// non auth page on a secure canal
|
||||
// nb: needed as the ReturnUrl for LogOn doesn't force the scheme to http, and reuses the current one
|
||||
if (!secure && request.IsSecureConnection) {
|
||||
// Also don't force http on ajax requests.
|
||||
if (!secure && request.IsSecureConnection && !request.IsAjaxRequest()) {
|
||||
var insecureActionUrl = AppendQueryString(
|
||||
request.QueryString,
|
||||
_sslService.InsecureActionUrl(
|
||||
|
||||
Reference in New Issue
Block a user