【发布时间】:2021-05-19 22:57:25
【问题描述】:
我在 Google 登录时收到此错误。
我确实使用 Strapi 在Qovery 上进行了部署。
我该如何解决这个问题?
redirect_uri 的参数值无效:不允许使用原始 IP 地址:http://0.0.0.0:1337/connect/google/callback
【问题讨论】:
标签: strapi
我在 Google 登录时收到此错误。
我确实使用 Strapi 在Qovery 上进行了部署。
我该如何解决这个问题?
redirect_uri 的参数值无效:不允许使用原始 IP 地址:http://0.0.0.0:1337/connect/google/callback
【问题讨论】:
标签: strapi
我忘了在server.js上添加url参数
然后:
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
});
现在:
module.exports = ({ env }) => ({
host: env('HOST', '0.0.0.0'),
port: env.int('PORT', 1337),
url: env('URL', 'http://localhost:1337'),
});
文档here.
【讨论】: