AEM 作为云服务 + CIF 插件 - /api/graphql 不适用于 Publish SDK
一个简单的问题。截至上周,我已通过 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.
After this I still 403 on GET request of /api/graphql and the following on POST request.
I am I missing some setting?
Note: on the sling servlet resolver config, I have added the /api/graphql but there is no change.
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题解决了。
我在全局变量中引入了一个名为 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