mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
https://github.com/ether/etherpad-lite/issues/4067#issuecomment-650423412 Thanks to @tom-chase
This commit is contained in:
parent
75ecb3f49b
commit
8a13bde535
1 changed files with 1 additions and 1 deletions
|
@ -688,7 +688,7 @@ exports.expressCreateServer = async (_, args) => {
|
||||||
// support jsonp response format
|
// support jsonp response format
|
||||||
if (req.query.jsonp && isValidJSONPName.check(req.query.jsonp)) {
|
if (req.query.jsonp && isValidJSONPName.check(req.query.jsonp)) {
|
||||||
res.header('Content-Type', 'application/javascript');
|
res.header('Content-Type', 'application/javascript');
|
||||||
response = `${req.query.jsonp}(${JSON.stringify(response)}`;
|
response = `${req.query.jsonp}(${JSON.stringify(response)})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// send response
|
// send response
|
||||||
|
|
Loading…
Reference in a new issue