Skip to content

Commit

Permalink
Fix CORS OPTIONS Call for POST REST requests (#163)
Browse files Browse the repository at this point in the history
- Set RequestContext from Request in DefaultRouter
  • Loading branch information
salvatore-pollaci authored and andrerom committed Jan 17, 2019
1 parent aaadbea commit ab86627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bundle/Routing/DefaultRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function setLegacyAwareRoutes(array $routes)

public function matchRequest(Request $request)
{
$this->setContext($this->context->fromRequest($request));
$attributes = parent::matchRequest($request);

if (
Expand Down

0 comments on commit ab86627

Please sign in to comment.