Task #104815
openSupport ECMAScript module file endings
0%
Description
Problem/Description¶
It's quit common to use file ending mjs
in the node-js universe in productive environments. There is no need to add them into DDEV's .htaccess, but on at least 2 checked known TYPO3 hoster companies, mjs
isn't delivered with mime-type application/javascript
(like js
is).
My scenario where I had troubles¶
The reason for this issue was that I'm using datatables package in a TYPO3 backend module datatables.net-bs5
. In the DDEV env all is working well. After deploying to production – in my case Mittwald (hey, I'm not bad-mouthing the host!) – a mime-type error occurs. First I thought that CSP could be problematic. After a quick research I came with the conclusion that this is a quite common file ending which should be added to core's root-htaccess.
ToDo(s)¶
- Add simple support for mjs via htaccess o-o-t-b in the TYPO3 core.
Acceptance Criteria¶
- mjs file response contains an
application/javascript
mime-type
Updated by Gerrit Code Review about 2 months ago
- Status changed from Accepted to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85868
Updated by Gerrit Code Review 13 days ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85868