Skip to content

Commit

Permalink
Merge pull request #7 from websoftix/patch-1
Browse files Browse the repository at this point in the history
Avoid "No route found for OPTIONS" errors
  • Loading branch information
vesparny committed Aug 7, 2014
2 parents 1e26e5c + d73f66b commit f86984e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
$response->headers->set("Access-Control-Allow-Methods","GET,POST,PUT,DELETE,OPTIONS");
$response->headers->set("Access-Control-Allow-Headers","Content-Type");
$response->setStatusCode(200);
$response->send();
return $response->send();
}
}, Application::EARLY_EVENT);

Expand Down

0 comments on commit f86984e

Please sign in to comment.