I have a
Refused to execute script from ... because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
<script> <?php include "script.js.php"; ?> </script>
This method will however take the user longer to download this page, because caching isn't really possible in-line.
I would still be open for better approaches.