mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-09 14:16:17 +02:00
https://github.com/ether/etherpad-lite/issues/4067#issuecomment-650423412 Thanks to @tom-chase
This commit is contained in:
parent
75ecb3f49b
commit
8a13bde535
@ -688,7 +688,7 @@ exports.expressCreateServer = async (_, args) => {
|
||||
// support jsonp response format
|
||||
if (req.query.jsonp && isValidJSONPName.check(req.query.jsonp)) {
|
||||
res.header('Content-Type', 'application/javascript');
|
||||
response = `${req.query.jsonp}(${JSON.stringify(response)}`;
|
||||
response = `${req.query.jsonp}(${JSON.stringify(response)})`;
|
||||
}
|
||||
|
||||
// send response
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user