Skip to content

Commit

Permalink
Merge pull request #87 from IDrinkMoreWater/master
Browse files Browse the repository at this point in the history
fix cors Json Request
  • Loading branch information
soda-x committed Aug 19, 2016
2 parents 0fb353d + 847bc70 commit 8105539
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rule.js
Expand Up @@ -175,6 +175,9 @@ export default function(args) {
return {
...header,
'access-control-allow-origin': '*',
'access-control-allow-headers':'Origin, X-Requested-With, Content-Type, Accept,Content-Range, Content-Disposition, Content-Description,Set-Cookie,, Access-Control-Request-Method, Access-Control-Request-Headers,Authorization,Authentication',
'access-control-allow-methods':'GET,POST,PUT,DELETE,PATCH,HEAD,OPTIONS',
'access-control-expose-headers':'Set-Cookie,Authorization,Authentication'
};
},

Expand Down

0 comments on commit 8105539

Please sign in to comment.