Skip to content

Commit

Permalink
enable "Access-Control-Allow-Origin" in request
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonguty committed Jan 20, 2015
1 parent a5560af commit 8e6f862
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ app.configure(function(){
app.use(express.logger('dev'));
app.use(express.bodyParser());
app.use(express.methodOverride());
app.all('/*', function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
next();
});

app.use(swagger.init(app, {
apiVersion: '1.0',
swaggerVersion: '1.0',
Expand Down

0 comments on commit 8e6f862

Please sign in to comment.