CSP error: Couldn't parse invalid host /theme-javascripts/

Since the latest update ( 2.5.0.beta3) our discourse forum keeps showing the following errors in the browsers dev console :


Any component that contains javascripts return this browser warrning.

Is there any CSP setting I’m missing?

What do you make of this @david?

That is strange, the CSP should include the hostname at the beginning of those URLs. Have you configured a CDN on your forum (check app.yml for a DISCOURSE_CDN_URL line).

If you’re able to share a link to your forum, that would also be useful.

We found the cause, it will be addressed soon. In the meantime, it shouldn’t be causing any issues except for the console warnings

4 Likes

Should be resolved by

https://github.com/discourse/discourse/commit/f95609ae23ce1604b5f53c9d232e66895cfc9ee7

5 Likes

Thank you very much! :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.