在codeigniter中-包含特殊字符(。)并引发403错误的Google登录回调URL。怎么修? [英] In codeigniter - google login callback url containing special characters (.) and throwing 403 error. how to fix?

查看:63
本文介绍了在codeigniter中-包含特殊字符(。)并引发403错误的Google登录回调URL。怎么修?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

此问题不是由于Codeigniter或google auth,这是由于modesecurity问题。我正在使用Bigrock托管,并且他们限制了mod的安全性。在请求支持团队后,他们启用了该功能。现在工作正常。


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~%.:_\-';

解决方案

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.

这篇关于在codeigniter中-包含特殊字符(。)并引发403错误的Google登录回调URL。怎么修?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆