Skip to content

Commit e0291d9

Browse files
author
nicola
committed
align ldnode with gold
1 parent e9b5ea5 commit e0291d9

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎index.js‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ function ldnode (argv) {
4343
app.locals.ldp = opts;
4444

4545
// Setting CORS
46-
app.use(cors());
46+
app.use(cors({
47+
methods: [
48+
'OPTIONS', 'HEAD', 'GET',
49+
'PATCH', 'POST', 'PUT', 'MKCOL', 'DELETE',
50+
'COPY', 'MOVE', 'LOCK', 'UNLOCK'
51+
],
52+
exposedHeaders: 'User, Location, Link, Vary, Last-Modified, Content-Length',
53+
credentials: true,
54+
maxAge: 1728000
55+
}));
4756

4857
// Session
4958
app.use(session({

0 commit comments

Comments
 (0)