对此 link 的无效令牌直接访问可能会导致潜在的安全漏洞

Invalid token direct access to this link may lead to a potential security breach

安装 Prestashop 后,我注意到每次尝试访问后台的 ProductsStocks 部分时,我都会得到以下信息错误:

Invalid token: direct access to this link may lead to a potential security breach.

即使我点击 "I understand the risk" 按钮,错误仍然显示。

所有其他菜单似乎都正常工作。 我已经在 Apache 2.4 和 PHP 7.1 上安装了 Prestashop 1.7.3。

我该如何解决这个问题?

更新:后台的其他部分也显示此错误!

终于解决了我的问题!

所有 PHP 扩展都已在托管服务提供商中激活:

因此,我停用了所有 Prestashop 工作所必需的除外:

砰!现在一切正常。

老实说,我不知道这可以解决我的问题。我只是觉得没有必要激活所有这些扩展。 其中一个(或多个)导致无效令牌错误,但我不知道是哪个。老实说,我没有时间或耐心对它们进行全部测试以找出答案¯_(ツ)_/¯