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:
parent
917b60aee4
commit
a9d2af5631
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user