Oauth错误invalid_request:redirect_uri未列入白名单

问题描述 投票:0回答:1

我正在尝试使用基于此documentation的React和Node开发应用程序:

我一步一步地按照教程进行操作,但我仍然坚持用这种URL格式测试应用程序:

我更换了ngrok地址和shopify商店,但是我收到404错误(找不到此页面。)

我在这个link找到了同样的问题。所以我将.env重命名为process.env,但我仍然遇到同样的问题。

这是.env文件:

enter image description here

package.json:

enter image description here

server.js:

enter image description here

错误 :

enter image description here

node.js reactjs shopify next.js
1个回答
0
投票

是的,您的回调网址存在问题,您必须在shopify合作伙伴帐户中定义应用网址和回调网址,然后创建shopify应用

Shopify partner account

你必须做如下

打开应用程序>> yourapp >>应用程序设置>>插入URL(白名单重定向URL)

将您的网址列入白名单后,问题就解决了

© www.soinside.com 2019 - 2024. All rights reserved.