'How to predifne mime-types on Artifactory Cloud?

We want to use some files in an Artifactory repository directly in HTML pages. e.g. css, js and json files.

I enabled allow content browsing under the advanced settings otherwise the browser always donwloads the file. enter image description here

For a test javascript file I also had to set this property: artifactory.content-type = application/javascript. Otherwise my html refuses to execute the file because the mime-type is application/octet-stream by default. enter image description here

In know we can set the mime-type per file extenstion in Artifactory on prem. But how should we deal with this on the SaaS version?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source