I've been writing custom javascript code in {html}<script></script>{html} tags on the page or another and including it, I've made User Macros and all that has worked fine but I don't want to continue that route. Instead I want to upload my .js files as attachments and include them, the best way I see is
{html}<script src="/download/attachments/123/file.js" type="text/javascript"></script>{html}
That seemed too easy and apparently was, Chrome is throwing an error when trying to load it:
Refused to execute script from 'http://confluence/download/attachments/4426187/HotFixCreation.js' because its MIME type ('application/x-upload-data') is not executable, and strict MIME type checking is enabled.
Any ideas how I can use my .js attachments?