Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why using text/plain for CONTENT_TYPE_JS ? #41

Closed
hlassiege opened this issue Apr 21, 2015 · 2 comments
Closed

why using text/plain for CONTENT_TYPE_JS ? #41

hlassiege opened this issue Apr 21, 2015 · 2 comments

Comments

@hlassiege
Copy link

Hi,

In the embedded console, the js file is served with a content type "text/plain"
So if I deploy this servlet in an application with spring security, I get the following error when I get to the page :

Refused to execute script from 'https://localhost:8080/admin/ff4j?rsc=js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.

Is there any reason to serve the file in "text/plain" instead of "application/javascript" ?

@clun
Copy link
Collaborator

clun commented Apr 21, 2015

There were no reason. Please update to 1.3.1 where this bug has been corrected
https://github.com/clun/ff4j/blob/master/ff4j-web/src/main/java/org/ff4j/web/embedded/ConsoleServlet.java

@clun clun added the duplicate label Apr 21, 2015
@clun
Copy link
Collaborator

clun commented Apr 21, 2015

duplication of #31

@clun clun closed this as completed Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants