JFrog artifactory native browser doesn’t render html files, forces them to download

We have a JFrog cloud pro account and are trying to diagnose an issue with HTML files not rendering from the native browser, but instead downloading.

I’ve put several HTML files and a TXT file in example-repo-local and under the native browser the repo looks like this:

enter image description here

Clicking on any of the files causes the browser to download the file, not display it.

The links redirect to e.g. https://<jfrog-host>/ui/api/v1/download?repoKey=example-repo-local&path=index.html&isNativeBrowsing=true, and looking at the browser network console it’s clear that the Content-Disposition header is being set to attachment:

enter image description here

There seem to be discussions related to this issue (e.g. https://jfrog.atlassian.net//si/jira.issueviews:issue-html/RTFACT-26189/RTFACT-26189.html) that don’t appear to have a resolution. Setting artifactory.redirect.native.browser.requests.to.ui=false on the repo doesn’t appear to have any effect, whether it’s set only on the repo or recursively.

Is serving static HTML from JFrog generic repo supported, and if so is there anything needed to enable it?

Leave a Comment