AndyRussG has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/381047 )
Change subject: BannerHistoryLogger: Fix ajax options for when sendBeacon is
not available
......................................................................
BannerHistoryLogger: Fix ajax options for when sendBeacon is not available
Bug: T174719
Change-Id: Ifd7ab8768492584d72d954f19dc8a46d40e29f45
---
M resources/subscribing/ext.centralNotice.bannerHistoryLogger.js
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice
refs/changes/47/381047/1
diff --git a/resources/subscribing/ext.centralNotice.bannerHistoryLogger.js
b/resources/subscribing/ext.centralNotice.bannerHistoryLogger.js
index 55866f9..636a019 100644
--- a/resources/subscribing/ext.centralNotice.bannerHistoryLogger.js
+++ b/resources/subscribing/ext.centralNotice.bannerHistoryLogger.js
@@ -225,7 +225,8 @@
elPromise = $.ajax( {
url: makeEventLoggingURL( elData ),
timeout: waitLogNoSendBeacon,
- method: 'POST'
+ dataType: 'script', // Helps prevent CORS
issues? See T174719
+ cache: true // Prevent JQuery from adding a
timestamp to the URL
} );
}
--
To view, visit https://gerrit.wikimedia.org/r/381047
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifd7ab8768492584d72d954f19dc8a46d40e29f45
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: wmf_deploy
Gerrit-Owner: AndyRussG <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits