Closed pcwSlide closed 1 year ago
Ok so I have spent another 4 hours on this. Steps:
Get this error immediately - in 2 pc's
Most other errors removed with Context-security - everything open in index.html
The issue is with the Browser Platform. When I run cordova run browser I get this error: The resource from “http://localhost:8000/cordova_plugins.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Because of this -> Loading failed for the Githubissues.
Bug Report
cordova create - install browser - cordova_plugins.js” failed to load - MIME nosniff error The resource from “http://localhost:8000/cordova_plugins.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Problem
ajax links to express fail - post : NOTE: Actually the issue in Browser Platform fails and produces the error above
What is expected to happen?
I expect them to work - they have for years. This error occurs with a fresh standard cordova create and browser install.
What does actually happen?
I run browser and the page loads - with the above error. This error kills my ajax post links to express..
Information
Command or Code
see elsewhere
Environment, Platform, Device
Windows 10 Mozilla Firefox Cordova Browser
C:\Users\Phil\Desktop\test>node -v v20.2.0
C:\Users\Phil\Desktop\test>cordova -v 12.0.0 (cordova-lib@12.0.1)
C:\Users\Phil\Desktop\test>cordova platform ls Installed platforms: browser 6.0.0 >> 7 is the same Available platforms: android electron
Version information
Checklist