# 埋め込みに関するヘルプ：\[discourse\] へのメッセージ投稿不可。受信者のオリジンは \[mydomain\] です

**URL:** <https://meta.discourse.org/t/help-with-embed-unable-to-post-message-to-discourse-receipient-has-origin-mydomain/192317>\
**Category:** Product Support\
**Created:** [2021 年 6 月 1 日午後 5:41 UTC](https://meta.discourse.org/t/help-with-embed-unable-to-post-message-to-discourse-receipient-has-origin-mydomain/192317 "2021-06-01T17:41:44Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![benscheirman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benscheirman/32/222650_2.png) [@benscheirman](https://meta.discourse.org/u/benscheirman)\
**Post date:** [2021 年 6 月 1 日午後 5:41 UTC](https://meta.discourse.org/t/help-with-embed-unable-to-post-message-to-discourse-receipient-has-origin-mydomain/192317/1 "2021-06-01T17:41:44Z")

</div>

新しい Discourse をセットアップし、別のサイトのページにコメントを埋め込もうとしています。

Safari で実行すると、JavaScript コンソールに以下のエラーが表示されます。

```plaintext
Unrecognized Content-Security-Policy directive 'worker-src'.

```

埋め込みページは約 30 秒間「Loading discussion…」と表示されたままになります。

その後、コンソールに以下が表示されます。

```plaintext
Unrecognized Content-Security-Policy directive 'worker-src'.
Unrecognized Content-Security-Policy directive 'worker-src'.
Unable to post message to https://forum.nsscreencast.com. Recipient has origin https://nsscreencast.com.

```

これは、コンテンツが読み込まれた後に iframe を自動的にサイズ調整するためのものだと推測されます。Chromium ベースのブラウザで実行すると、このエラーは発生しません。

Safari でこの `postMessage` フローを動作させるために、何か設定が必要でしょうか？

---

_[View the full topic](https://meta.discourse.org/t/help-with-embed-unable-to-post-message-to-discourse-receipient-has-origin-mydomain/192317)._
