1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Server: Fixes #7525: Fixed regression that would prevent styles from being loaded in published notes

This commit is contained in:
Laurent Cozic 2022-12-26 11:55:41 +00:00
parent c710cfd273
commit 5c8861cbd1
3 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@
"@fortawesome/fontawesome-free": "5.15.4",
"@joplin/lib": "~2.10",
"@joplin/renderer": "~2.10",
"@koa/cors": "4.0.0",
"@koa/cors": "3.1.0",
"@types/uuid": "9.0.0",
"bcryptjs": "2.4.3",
"bulma": "0.9.4",

View File

@ -184,7 +184,7 @@ async function main() {
app.use(cors({
// https://github.com/koajs/cors/issues/52#issuecomment-413887382
origin: (ctx: AppContext) => {
const origin = ctx.request.origin;
const origin = ctx.request.header.origin;
if (acceptOrigin(origin)) {
return origin;

View File

@ -4657,7 +4657,7 @@ __metadata:
"@joplin/lib": ~2.10
"@joplin/renderer": ~2.10
"@joplin/tools": ~2.10
"@koa/cors": 4.0.0
"@koa/cors": 3.1.0
"@rmp135/sql-ts": 1.15.1
"@types/formidable": 2.0.5
"@types/fs-extra": 9.0.13
@ -4852,12 +4852,12 @@ __metadata:
languageName: node
linkType: hard
"@koa/cors@npm:4.0.0":
version: 4.0.0
resolution: "@koa/cors@npm:4.0.0"
"@koa/cors@npm:3.1.0":
version: 3.1.0
resolution: "@koa/cors@npm:3.1.0"
dependencies:
vary: ^1.1.2
checksum: e0760544823532f2d71d792e3076858e38bab9b1c090abea175f1319fd91ea58a1da384a2fe7f5108f1c681e3830b01f62a1cafe271d6406751976af443187aa
checksum: b6f18de404a967696fe19c9a8d35816e2a845be51f9aa49f1a8d31bbea095eaa20c35eceafe1b764a7e3a912052ca6eaf1965ac34b00020b1ec2823cb60a9b5d
languageName: node
linkType: hard