Skip to content

Commit

Permalink
Merge pull request #5 from uniondrug/2.x
Browse files Browse the repository at this point in the history
cross domain
  • Loading branch information
fuyibing authored Apr 11, 2018
2 parents f6143ac + 889a55a commit 900b6b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Middlewares/CorsMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function handle(RequestInterface $request, DelegateInterface $next)
$response->setHeader('Access-Control-Allow-Origin', $request->getHeader('Origin'));
$response->setHeader('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Cookie');
$response->setHeader('Access-Control-Allow-Methods', 'GET, POST, DELETE, PUT, OPTIONS');
$response->setHeader('Access-Control-Allow-Credentials', 'true');
}

return $response;
Expand Down

0 comments on commit 900b6b7

Please sign in to comment.