Skip to content

Commit

Permalink
issue expressjs#2 seems to work fine
Browse files Browse the repository at this point in the history
  • Loading branch information
troygoode committed Apr 28, 2013
1 parent b2c49ca commit de1b95e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/issue-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ describe('issue #2', function(){
supertest(app)
.post('/api/login')
.expect(200)
.set('Origin', 'http://example.com')
.end(function(err, res){
should.not.exist(err);
console.log(res.headers);
res.headers['access-control-allow-origin'].should.eql('*');
res.headers['access-control-allow-origin'].should.eql('http://example.com');
res.text.should.eql('LOGIN');
done();
});
Expand Down

0 comments on commit de1b95e

Please sign in to comment.