Start your All-Access Pass to unlock this challenge
Challenge 1 / 1
Why did we add this extra check for the referer
in the success()
action?
public function success()
$referer = $request->headers->get('referer');
$lsStoreUrl = 'https://squeeze-the-day.lemonsqueezy.com';
if (!str_starts_with($referer, $lsStoreUrl)) {
return $this->redirectToRoute('app_homepage');
}
// ...
}
Skip challenges and go to theNext Chapter