diff --git a/middleware/cors.js b/middleware/cors.js index d090f46f..6d30529f 100644 --- a/middleware/cors.js +++ b/middleware/cors.js @@ -3,8 +3,7 @@ function middleware(req, res, next){ res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Methods', 'GET, OPTIONS'); res.header('Access-Control-Allow-Headers', 'X-Requested-With,content-type'); - res.header('Access-Control-Allow-Credentials', true); next(); } -module.exports = middleware; \ No newline at end of file +module.exports = middleware; diff --git a/test/ciao/CORS/headers_GET.coffee b/test/ciao/CORS/headers_GET.coffee index 53866718..185838ab 100644 --- a/test/ciao/CORS/headers_GET.coffee +++ b/test/ciao/CORS/headers_GET.coffee @@ -6,4 +6,3 @@ path: '/' response.should.have.header 'Access-Control-Allow-Origin','*' response.should.have.header 'Access-Control-Allow-Methods','GET, OPTIONS' response.should.have.header 'Access-Control-Allow-Headers','X-Requested-With,content-type' -response.should.have.header 'Access-Control-Allow-Credentials','true' \ No newline at end of file diff --git a/test/ciao/CORS/headers_OPTIONS.coffee b/test/ciao/CORS/headers_OPTIONS.coffee index 5575391a..3cb47b37 100644 --- a/test/ciao/CORS/headers_OPTIONS.coffee +++ b/test/ciao/CORS/headers_OPTIONS.coffee @@ -7,4 +7,3 @@ method: 'OPTIONS' response.should.have.header 'Access-Control-Allow-Origin','*' response.should.have.header 'Access-Control-Allow-Methods','GET, OPTIONS' response.should.have.header 'Access-Control-Allow-Headers','X-Requested-With,content-type' -response.should.have.header 'Access-Control-Allow-Credentials','true' \ No newline at end of file