Skip to content

Commit 4b214bc

Browse files
committed
adding origin:true
1 parent e0291d9 commit 4b214bc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function ldnode (argv) {
5151
],
5252
exposedHeaders: 'User, Location, Link, Vary, Last-Modified, Content-Length',
5353
credentials: true,
54-
maxAge: 1728000
54+
maxAge: 1728000,
55+
origin: true
5556
}));
5657

5758
// Session

test/http.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ describe('HTTP APIs', function() {
1818
it('should have Access-Control-Allow-Origin in header on root container', function(done) {
1919
server.get('/')
2020
.set('Origin', 'http://example.com')
21-
.expect('Access-Control-Allow-Origin', '*')
21+
.expect('Access-Control-Allow-Origin', 'http://example.com')
2222
.expect(200, done);
2323
});
2424

2525
it('should have Access-Control-Allow-Origin in header on other containers', function(done) {
2626
server.get('/sampleContainer')
2727
.set('Origin', 'http://example.com')
28-
.expect('Access-Control-Allow-Origin', '*')
28+
.expect('Access-Control-Allow-Origin', 'http://example.com')
2929
.expect(200, done);
3030
});
3131

3232
it('should have Access-Control-Allow-Origin in header on resources', function(done) {
3333
server.get('/sampleContainer/example1.ttl')
3434
.set('Origin', 'http://example.com')
35-
.expect('Access-Control-Allow-Origin', '*')
35+
.expect('Access-Control-Allow-Origin', 'http://example.com')
3636
.expect(200, done);
3737
});
3838
});

0 commit comments

Comments
 (0)