问题
http://techmarga.com/admin/login?code=4/fgDeyBqu0sgp4_FMWLm3TQCGgI54vUGKNCiW9g00TG4uOfd5Z_R_-uv4-25hoB-GsfrsPsFoBsxn0UwiLNcQZ78&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile
In codeigniter google login callback url containing special characters and it is throwing 403 error. *if i remove https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile it is working** .
In local xampp everything is working fine but in server it is not working(403 error)
my config permitted_uri_chars are as below
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
回答1:
This issue is not because of Codeigniter or google auth,this is because of modesecurity issue. I am using Bigrock hosting and they restricted mod security.After requesting to support team they enabled. Now it is working fine.
来源:https://stackoverflow.com/questions/52917870/in-codeigniter-google-login-callback-url-containing-special-characters-and