Extendy / SmartyURL

SmartyURL is a PHP-based web application for Smart URL management, Sharing, shortening, and analytics, featuring smart redirects.
https://docs.smartyurl.extendy.net/
MIT License
12 stars 2 forks source link

Bug: CodeIgniter\Security\Exceptions\SecurityException #403 while login #153

Closed mshannaq closed 6 months ago

mshannaq commented 6 months ago

When I installed SmartyURL and follow the install instructions on https://docs.smartyurl.extendy.net/developers/ and try to login I got error . and after I change the CI_ENVIRONMENT to development in .env file I got the error

CodeIgniter\Security\Exceptions\SecurityException #403
The action you requested is not allowed.

image

mshannaq commented 6 months ago

This isn't a bug. Please ensure that in your .env file, you've correctly set all necessary variables, particularly app.baseURL and cookie.domain.

If cookie.domain isn't set to a valid value, you might encounter this error.

By replacing .EXAMPLE.COM in cookie.domain value with your actual domain name using for SmartyURL, you ensured that cookies are created and shared within the intended domain scope.

This allowed CodeIgniter's CSRF protection to function as expected, verifying the CSRF token and enabling a successful login process and other related from proccess.