You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I request an HTML page on the files browser, for example by hitting /pun/sys/dashboard/files/fs//home/users/allstaff/milton.m/ResidBenchmark/resid.html in my browser, it gets served to me without a content type, and consequently it's rendered as plaintext in my browser. However, being an HTML file I was hoping my browser would render it for me.
I checked the headers for this request and they are as follows:
Notably, there is no Content-Type: text/html; charset=utf-8 header or indeed no Content-Type header at all. Was this a deliberate decision to not set content types, or would it be possible to add them based on the file extension?
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #1619 - we don't show HTML files because we don't have a strong enough content security policy to block potentially malicious files.
If I request an HTML page on the files browser, for example by hitting
/pun/sys/dashboard/files/fs//home/users/allstaff/milton.m/ResidBenchmark/resid.html
in my browser, it gets served to me without a content type, and consequently it's rendered as plaintext in my browser. However, being an HTML file I was hoping my browser would render it for me.I checked the headers for this request and they are as follows:
Notably, there is no
Content-Type: text/html; charset=utf-8
header or indeed noContent-Type
header at all. Was this a deliberate decision to not set content types, or would it be possible to add them based on the file extension?The text was updated successfully, but these errors were encountered: