Can I see spartacus storefront in smartedit preview mode of local environment?

谁说我不能喝 提交于 2020-12-13 04:55:13

问题


I built a local development environment with CX 2005 & spartacus for study purpose.

Spartacus storefront works like a charm. Url is http://localhost:4200

But I can't see spartacus storefront in local smartedit's preview mode. (Url is https://localhost:9002/smartedit. Smartdit > Spartacus Electronics Site > Online > Home)

So I realized the spartacus storefront's url in iframe src is start with https not http.

  1. Could I change this iframe src to http or Can I launch my spartacus server to https intead of http?

I refered to Using Angular CLI to serve over https locally and launched spartacus storefront with https, but stil can't see spartacus storefront through smartedit.

  1. Or we don't need to see spartacus storefont in smartedit?

Thanks in advance.


回答1:


Spartacus site can be displayed in SmartEdit. Follow the procedure here: https://sap.github.io/spartacus-docs/smartEdit-setup-instructions-for-spartacus/

Could I change this iframe src to http or Can I launch my spartacus server to https intead of http?

Yes, it's recommended to use HTTPS.



来源:https://stackoverflow.com/questions/64745019/can-i-see-spartacus-storefront-in-smartedit-preview-mode-of-local-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!