[theme] external CSS and jscript


I’m trying to make a theme for my nextcloud, and I want to add a navigation bar at the top.

the navigation bar is a simple php file, calling a jscript, and a css file.
everything is host on my server, but the files and my nextcloud install are on different sub domain (nav bar is host under MyDomainName, and nextcloud is host under cloud.MyDomainName )

I add the code to call for the nav bar in nextcloud/themes/yggz/core/templates/layout.user.php (I don’t need it when the user is not logged), no problem with that.
But i can’t seem to get the css/jscript working :

Content Security Policy: The page’s settings blocked the loading of a resource at https://[MyDomainName]/home/js/nav.js (“script-src”).

MyDomainName and cloud.MyDomainName are both in my trusted_domains

What can I do to make it work?

Nextcloud version : 13.0.0 RC 3
Operating system and version / Apache or nginx version : I don’t know because i’m using a shared host server (and so I don’t have access to apache file, or to the terminal)
PHP version : 7.0