red-hat-storage / odf-operator

OpenShift Data Foundation Meta Operator
Apache License 2.0
24 stars 57 forks source link

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

Open SanjalKatiyar opened 7 months ago

SanjalKatiyar commented 7 months ago

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: https://github.com/openshift/console/pull/13637#discussion_r1504460085 for more details.

iamniting commented 3 months ago

@SanjalKatiyar Are there any plans to work on this?

SanjalKatiyar commented 3 months ago

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