Skip to content

Commit

Permalink
Don't make browsers fail on sync-xhr until require-kernel is dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
webzwo0i committed Apr 4, 2021
1 parent e86547c commit d69e60a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node/hooks/express/specialpages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d69e60a

Please sign in to comment.