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

Chore: Fixed server origin (regression)

This commit is contained in:
Laurent Cozic 2022-11-05 11:48:48 +00:00
parent 917b60aee4
commit a9d2af5631

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.header.origin;
const origin = ctx.request.origin;
if (acceptOrigin(origin)) {
return origin;