在 codeigniter - google 登录回调 url 包含特殊字符 (.) 并抛出 403 错误。怎么修?

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

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

在 codeigniter google 登录回调 url 中包含特殊字符并抛出 403 错误。 *如果我删除 https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile 它正在工作**。

在本地 xampp 一切正常,但在服务器中它不工作(403 错误)

我的配置permitted_uri_chars如下

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';

此问题不是因为 Codeigniter 或 google 身份验证,这是因为 mod 安全问题。我正在使用 Bigrock 托管,他们限制 mod security.After 请求支持他们启用的团队。现在一切正常。