아티팩트에 데이터를 전달하는 방법은 무엇인가요?

Oh this is a tricky one, no this is not something the framework allows at the moment, it is a very interesting use case.

I like the feature request here of just passing along all data- attributes into the sandboxed artifact, it is an elegant solution.

One option that may work though is to lean on query params, but the sandboxed iframe had no access to that:

https://meta.discourse.org/discourse-ai/ai-bot/artifacts/166?222

@david do you think there is any security implication to passing in information about the outside world to an artifact? (leave sandbox, but I guess echo window.location.search into some sort of attribute?

3개의 좋아요