Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2300, host images on config.contentOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed May 18, 2017
1 parent d9f9fe6 commit 53e3591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/server.js
Expand Up @@ -292,7 +292,7 @@ function decodeAuthHeader(header) {
app.use(function(req, res, next) {
req.staticLink = linker.staticLink;
req.staticLinkWithHost = linker.staticLinkWithHost.bind(null, req);
let base = `${req.protocol}://${req.headers.host}`;
let base = `${req.protocol}://${config.contentOrigin}`;
linker.imageLinkWithHost = linker.imageLink.bind(null, base);
next();
});
Expand Down

0 comments on commit 53e3591

Please sign in to comment.