좋은 지적입니다. 스테이징 사이트에서 시도해 봤지만 unfortunately 문제가 해결되지 않았습니다.
Chrome에서는 다음과 같은 오류가 표시됩니다:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://test-discourse.comses.net') does not match the recipient window's origin ('https://test.comses.net').
(https://test.comses.net/codebases/f0613922-9cb1-4656-a26c-af57f823fb69/releases/3.2.0/ 에서)
여기서 다른 사용자들은 DiscourseEmbed.discourseEmbedUrl이 참조 URL과 동일하도록 설정함으로써 이 문제를 해결할 수 있었던 것 같지만, 제가 확인해 보니 여전히 올바르게 설정되어 있었습니다. Discourse 로그를 살펴봤는데(혹시 /var/discourse/shared/standalone/log/rails/production.log 파일을 봐야 하나요?), 거기서도 오류가 보이지 않았습니다. 이 문제를 해결하기 위해 다른 곳에서 확인해 볼 아이디어가 있을까요?
Discourse 로그의 예시:
Started GET "/embed/comments?embed_url=https%3A%2F%2Ftest.comses.net%2Fcodebases%2Ff0613922-9cb1-4656-a26c-af57f823fb69%2Freleases%2F3.2.0%2F" for 72.201.57.141 at 2020-08-05 05:15:40 +0000
Processing by EmbedController#comments as HTML
Parameters: {"embed_url"=>"https://test.comses.net/codebases/f0613922-9cb1-4656-a26c-af57f823fb69/releases/3.2.0/"}
Rendering embed/loading.html.erb within layouts/embed
Rendered embed/loading.html.erb within layouts/embed (Duration: 0.4ms | Allocations: 134)
Completed 200 OK in 91ms (Views: 1.8ms | ActiveRecord: 0.0ms | Allocations: 16308)
Started GET "/service-worker-c8000968830b6f6bd33f1e842dffdd569664119d449f93dc7d428d963a71635d.js" for 72.201.57.141 at 2020-08-05 05:15:42 +0000
Processing by StaticController#service_worker_asset as */*
Rendering text template
Rendered text template (Duration: 0.0ms | Allocations: 1)
Completed 200 OK in 27ms (Views: 1.3ms | ActiveRecord: 0.0ms | Allocations: 6617)