- Issue created by @ashetkar
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
Are you saying that the changes in commit 2fc9b78 are what broke this? If you taken 6.3.x and revert that commit, does it fix it?
- ๐ฎ๐ณIndia ashetkar
I have tried with version 6.2.2 and it's working fine. For webform version 6.3.x still an issue.
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
If you use 6.3.x and revert commit 2fc9b78, does it work?
- Status changed to Postponed: needs info
5 months ago 4:38pm 31 July 2024 I can't reproduce this bug in the latest 6.2 release. The JavaScript works for me. So we need improved steps to reproduce.
Having the same issue, strangely enough this only happens on server, dev or production but not locally
I also experienced this issue after upgrading to 6.2.7. The javascript fails to load and I receive a browser error message 'The resource from '.../custom.js' was blocked due to MIME type (โtext/htmlโ) mismatch (X-Content-Type-Options: nosniff)." I downgraded to 6.2.4 and received the same error. I then downgraded to 6.2.2 and the javascript loads correctly on that version.
- ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
You can use
git bisect
to figure out which commit was the change that caused this problem. Thank you for the tip liam. Yes it shows commit 2fc9b78 as the first bad commit for me.
- Status changed to Active
4 months ago 11:18pm 15 August 2024 - ๐จ๐ฆCanada Liam Morland Ontario, CA ๐จ๐ฆ
If you take the latest 6.3.x and revert commit 2fc9b78, does that fix it?
Yes, reverting that commit from 6.3.x does get the custom javascript working for me again.
I was having the same problem with css and javascript, I found out that the module fast_404 โ was causing the bug, because of the new routing with extension (.ccs, .js).
In my case, uninstalling fast_404 fixed the issue.- ๐บ๐ธUnited States jrockowitz Brooklyn, NY
\Drupal\webform\Controller\WebformEntityController::javascript and \Drupal\webform\Controller\WebformEntityController::css are setting the correct content type in the header.
I think we have to keep *.css and *.js extension so that Ajax works as expected.