Skip to content

Commit

Permalink
#74 allowing more cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed May 27, 2013
1 parent 83fde54 commit 39f0380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/mvc.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ function cors() {
} else {
header("Access-Control-Allow-Origin: *");
}
header("Access-Control-Allow-Headers: Content-Type, X-Requested-With, X-PINGOTHER");
header("Access-Control-Allow-Headers: X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version, X-PINGOTHER");
header("Access-Control-Max-Age: 86400"); // cache for 1 day
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS");

Expand Down

0 comments on commit 39f0380

Please sign in to comment.