In codeigniter - google login callback url containing special characters (.) and throwing 403 error. how to fix?

試著忘記壹切 提交于 2019-12-08 01:17:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!