Don't make browsers fail on sync-xhr until require-kernel is dropped

This commit is contained in:
webzwo0i 2021-04-04 16:17:11 +02:00 committed by Richard Hansen
parent e86547c4f5
commit e483b91916

View file

@ -54,6 +54,8 @@ exports.expressCreateServer = (hookName, args, cb) => {
isReadOnly,
});
// can be removed when require-kernel is dropped
res.header('Feature-Policy', 'sync-xhr \'self\'');
res.send(eejs.require('ep_etherpad-lite/templates/pad.html', {
req,
toolbar,