# Проблема с относительным путем вызывает ошибку CORS на сайтах Discourse

**URL:** <https://meta.discourse.org/t/issue-with-relative-path-causing-cors-error-on-discourse-sites/333024>\
**Category:** Bug\
**Created:** [27.Октябрь.2024 06:27:11 UTC](https://meta.discourse.org/t/issue-with-relative-path-causing-cors-error-on-discourse-sites/333024 "2024-10-27T06:27:11Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![simonk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonk/32/247950_2.png) [@simonk](https://meta.discourse.org/u/simonk)\
**Post date:** [29.Октябрь.2024 17:48:29 UTC](https://meta.discourse.org/t/issue-with-relative-path-causing-cors-error-on-discourse-sites/333024/7 "2024-10-29T17:48:29Z")

</div>

> [@Simon King](#):
>
> Существует настройка `cdn_origin_hostname`, которую, возможно, можно установить в обычное имя хоста Discourse.

В продолжение темы: я установил `cdn_origin_hostname` в обычное доменное имя моего экземпляра Discourse, очистил кэш CDN, и теперь highlightjs снова работает. Я не _заметил_ никаких побочных эффектов…

---

_[View the full topic](https://meta.discourse.org/t/issue-with-relative-path-causing-cors-error-on-discourse-sites/333024)._
