Welcome Guest, Not a member yet? Register   Sign In
CSRF error on login
#1

Hey guys, new guy here (first post) so I apologize if this is in the wrong place.

I've been building a web app using CI 3, and I've run into a kind of strange problem: on Microsoft Edge, I am getting the CSRF error page ("this action is not allowed" or whatever) whenever I try to login.  I didn't have this problem in development, but the production machine is on a different server.  I just checked my app/config/config.php, and my CSRF settings are exactly the same on both.  They are:

$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'my_token_goes_here';
$config['csrf_cookie_name'] = 'csrf';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = FALSE;
$config['csrf_exclude_uris'] = array();

So this doesn't make a whole lot of sense.  It's definitely not CSRF - I am logging in from the app, not a script - but for some reason CI thinks it is.  Maybe Edge does something wonky with cookies?

Thanks in advance.  Smile
Reply


Messages In This Thread
CSRF error on login - by mfox - 06-13-2018, 08:09 AM
RE: CSRF error on login - by php_rocs - 06-13-2018, 01:45 PM
RE: CSRF error on login - by mfox - 06-13-2018, 02:16 PM
RE: CSRF error on login - by php_rocs - 06-13-2018, 09:32 PM
RE: CSRF error on login - by php_rocs - 06-13-2018, 09:35 PM
RE: CSRF error on login - by InsiteFX - 06-14-2018, 03:32 AM
RE: CSRF error on login - by mfox - 06-14-2018, 06:01 AM
RE: CSRF error on login - by InsiteFX - 06-14-2018, 06:26 AM
RE: CSRF error on login - by mfox - 06-14-2018, 07:42 AM
RE: CSRF error on login - by InsiteFX - 06-14-2018, 09:19 AM
RE: CSRF error on login - by mfox - 06-14-2018, 09:40 AM
RE: CSRF error on login - by InsiteFX - 06-14-2018, 12:46 PM
RE: CSRF error on login - by mfox - 06-14-2018, 02:59 PM
RE: CSRF error on login - by php_rocs - 06-14-2018, 03:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB