diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-02-05 02:33:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-05 02:33:00 +0300 |
commit | a2fd1e52fa34a241bf3b4d83114863418cf6742a (patch) | |
tree | 0b4eca2fa4c27a8d09f42679de8cb145be305a53 /js/piwik.js | |
parent | 490dc3a1a09e4263b4893cbbbf600ba505d9add4 (diff) |
Send 204 response for bulk requests to avoid possible CORB issue (#17180)
* Send 204 response for bulk tracking requests that were send with send_image=0
and automatically add that for all bulk requests sent be piwik.js
* rebuilt piwik.js
Co-authored-by: sgiehl <sgiehl@users.noreply.github.com>
Diffstat (limited to 'js/piwik.js')
-rw-r--r-- | js/piwik.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js index 6c88b24835..68a7dae957 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -3000,7 +3000,7 @@ if (typeof window.Matomo !== 'object') { var i = 0, bulk; for (i; i < chunks.length; i++) { - bulk = '{"requests":["?' + chunks[i].join('","?') + '"]}'; + bulk = '{"requests":["?' + chunks[i].join('","?') + '"],"send_image":0}'; if (configAlwaysUseSendBeacon && sendPostRequestViaSendBeacon(bulk, null, false)) { // makes sure to load the next page faster by not waiting as long // we apply this once we know send beacon works |