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

Configure odf console plugin web server to use recommended MIME type #376

Open
SanjalKatiyar opened this issue Feb 29, 2024 · 2 comments
Open

Comments

@SanjalKatiyar
Copy link
Contributor

Severity: Medium
Priority: Low

Current behaviour (checked on OCP/ODF 4.15):
Request URL: https:<OCP_BASE_URL>/api/plugins/odf-console/packages_shared_src_utils_index_ts-webpack_sharing_consume_default_react-webpack_sharing_cons-e82239-chunk.js

Response headers:

content-type: application/javascript
x-content-type-options: nosniff

application/javascript is considered to be a legacy JavaScript MIME type but is still a valid one for now. Proper MIME type for JavaScript according to current HTML spec is text/javascript.

Refer: openshift/console#13637 (comment) for more details.

@iamniting
Copy link
Member

@SanjalKatiyar Are there any plans to work on this?

@SanjalKatiyar
Copy link
Contributor Author

It's good to do it eventually, but no immediate hurry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants