Herbert Yang
Herbert Yang
Sure. Let me know when you have one. Keep up the great work! ------ Herbert Yang ***@***.*** ***@***.***> China GM · DFINITY > On Oct 29, 2021, at 12:10 PM,...
Yes, the demand from Chinese IC developers is pretty strong. My Twitter ID is @herbertyang (https://twitter.com/herbertyang ). Give me a yell on Twitter and I can loop you guys into...
Thanks Paul for identifying this issue for me. I had to change my api path from `api/posts` to `api-ic/posts` to avoid this awkward and very unexpected error. I thought it...
@chenyan-dfinity Hi Yan, could you take a look at this PR? Can it be merged?
用了个hack暂时解决了这个问题。从安全的角度,ICP对iframe的使用做了一些限制: https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Other_embedding_technologies 所以,ICP上的iframe,不能直接展示canister内部的文件。但是,ICP上的iframe,可以展示ICP网络外部文件(譬如一个Youtube的视频)。所以,可以用以下方式绕过ICP目前的限制: 1. 把PDF文件放在 `static/asset/`里 2. 用``来引用这个PDF,deploy到主网后,产生一个恒定的URL 3. 把这个恒定的URL,放在`iframe`里。对于这个iframe来说,这是一个来自自身的canister之外的一个链接,不受ICP协议的限制。 详情可见 #43 的使用情况。