Incorrect MIME type on your hosted enterprise beta sandbox


#1

Getting the following error in firefox console on your hosted 2.0 enterprise beta:

The stylesheet https://df-andens.enterprise.dreamfactory.com/files/AddressBookForJavaScript/add_javascript/css/styles.css was not loaded because its MIME type, “text/html”, is not “text/css”.

I’m getting that error when I launch the app.
All I’ve done is added one user, role, sqlite db and the example that you provide.


#2

This should be fixed in the JS example app now: https://github.com/dreamfactorysoftware/javascript-sdk


#3

I am seeing the same issue with non-sample javascript. The problem is that when you try to import a .css file instead of including the css inline the server seems to serve up the wrong mime type. I would think that this should be a file system configuration setting. You ought to be able to attach a mime type override to specific files or folders in the files system to fix this problem.


#4

the previous fix on the sample app was just to put the styles inline.
An actual code fix for this is coming in the next release: Hosted website css stylesheet problem