Skip to content

Commit

Permalink
Merge pull request #19 from anhofmann/master
Browse files Browse the repository at this point in the history
don't expose sessionID to other domains
  • Loading branch information
amenk authored May 27, 2024
2 parents 5b75ebd + 548d895 commit 84ca625
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UrlGeneratorService.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ private function addSid(string $url, ?\Illuminate\Routing\Route $route = null):
return $url;
}

// Don't expose sessionID to other Domains
if(parse_url($url, PHP_URL_HOST) != parse_url(\Config::get('app.url'))) {
return $url;
}

// Get the current query string and parameters
$queryString = parse_url($url, PHP_URL_QUERY) ?? '';
parse_str($queryString, $queryParameters);
Expand Down

0 comments on commit 84ca625

Please sign in to comment.