Skip to content

Commit

Permalink
Do not check isSameHost (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
barryvdh authored Mar 11, 2021
1 parent b6920bd commit 9cb795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CorsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function isActualRequestAllowed(Request $request): bool

public function isCorsRequest(Request $request): bool
{
return $request->headers->has('Origin') && !$this->isSameHost($request);
return $request->headers->has('Origin');
}

public function isPreflightRequest(Request $request): bool
Expand Down

0 comments on commit 9cb795b

Please sign in to comment.