mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
WIP debug duplicated headers in production envs
This commit is contained in:
parent
71ad9f2688
commit
cfbb5e1fc6
@ -1177,6 +1177,19 @@ define([
|
||||
});
|
||||
});
|
||||
|
||||
['/', '/blob/placeholder.txt', '/block/placeholder.txt'].forEach(relativeURL => {
|
||||
assert(function (cb, msg) {
|
||||
var url = new URL(relativeURL, trimmedUnsafe).href;
|
||||
Tools.common_xhr(url, xhr => {
|
||||
msg.appendChild(h('span', [
|
||||
h('p', '// XXX DEBUGGING DUPLICATED HEADERS'),
|
||||
h('pre', xhr.getAllResponseHeaders()),
|
||||
]));
|
||||
cb(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
var POLICY_ADVISORY = " This link will be included in the home page footer and 'About CryptPad' menu. It's advised that you either provide one or disable registration.";
|
||||
var APPCONFIG_DOCS_LINK = function (key, href) {
|
||||
return h('span', [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user