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?
$.getScript is to include the file content in the body of the page. It's to work around the cache... it solve the shituation, but it's not a best practice.
To change the content type of an attachment, please visit the view page attachment (viewpageattachments.action) and click in Properties of the js file.
Hi my Community friends! For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs