[chromium] [INFO:CONSOLE(0)] "Failed to load module script: The server responded with a non-JavaScript MIME type of "";. Strict MIME type checking is enforced for module scripts per HTML spec
Steps to reproduce the problem:
- Using Xamarin Webview to load URL.
- Facing problems on Android APK < 30 with lower chrome version.
- Unable to load Webview.
Problem Description:
Trying to launch a Xamarin.Android WebView using url "file://android_asset/www/index.html".
Recently upgraded UI to Angular v13, hence index.html <script> contains type="module".
Getting the following error :
"[chromium] [INFO:CONSOLE(0)] "Failed to load module script: The server responded with a non-JavaScript MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.", source: file:///android_asset/www/polyfills.js" & other 3 modules.
This is a production app and needs to be fixed.
Please sugegst something.
Thanks.
Additional Comments:
Chrome version: 69.0.3497.100 Channel: Stable
OS:Android
Xamarin
1 answer
Sort by: Most helpful
-
Deleted
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more