AEM 作为云服务 + CIF 插件 - /api/graphql 不适用于 Publish SDK

发布于 2025-01-09 20:43:24 字数 1070 浏览 1 评论 0原文

一个简单的问题。截至上周,我已通过 Venia 店面完全设置了 AEM SDK,所有组件均正常工作。当我将设置移至 AEM 发布 SDK 时,我遇到了一个问题。

/api/graphql 抛出 403 错误,这意味着店面没有发生前端商务操作。

我尝试将 /api/graphql 添加到 CSRF 过滤器的排除列表中,甚至从那里删除了 POST 方法。

输入图片此处描述

此后,我在 /api/graphql 的 GET 请求上仍然出现 403 错误,在 POST 请求上仍然出现以下错误。

输入图片此处描述

我是否缺少某些设置?

注意:在 sling servlet 解析器配置中,我添加了 /api/graphql 但没有任何更改。

输入图片此处描述

群组中有一个与此非常相似的查询,但没有响应。于是想到这里提出来。 https://experienceleaguecommunities.adobe。 com/t5/adobe-experience-manager/aem-cif-magento-on-publish..

如果我遗漏了什么,请告诉我。

One quick question. As of last week I had completely setup the AEM SDK with the Venia store front with all the components working. When I move the setup the AEM publish SDK, I am encountering one issue.

The /api/graphql is throwing 403 errors which means no frontend commerce operation is happening on the storefront.

I tried adding the /api/graphql to the CSRF filter's exclude list and even removed the POST method from there.

enter image description here

After this I still 403 on GET request of /api/graphql and the following on POST request.

enter image description here

I am I missing some setting?

Note: on the sling servlet resolver config, I have added the /api/graphql but there is no change.

enter image description here

There is a query very similar to this on the groups but there is no response. So thought of raising it here.
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cif-magento-on-publish...

Please let me know if I am missing something.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一花一树开 2025-01-16 20:43:24

问题解决了。

我在全局变量中引入了一个名为 COMMERCE 的变量来解决该问题,因为 vhost 文件引用了它。

我本来可以做得更好一点,但我想我很懒:)

请参阅此链接了解详细信息:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cif-magento-on-publish/mp/442185#M31799

Issue solved.

I introduced a var called COMMERCE in the global vars to solve the problem, since the vhost file refers to it.

I could have done it slightly better but I guess i was lazy :)

Please refer to this link for details:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-cif-magento-on-publish/m-p/442185#M31799

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文