You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "anandasastry (via GitHub)" <gi...@apache.org> on 2023/11/28 18:36:57 UTC

[I] Receiving the error - Refused to execute script because X-Content-Type-Options: nosniff was given and Content-Type is not a script MIME type [apisix-dashboard]

anandasastry opened a new issue, #2893:
URL: https://github.com/apache/apisix-dashboard/issues/2893

   ### Issue description
   
   My APISIX Dashboard is behind a load balancer VIP and the VIP automatically add the below header in the server response
   
   X-Content-Type-Options: nosniff
   
   Because of this, the browser is not able to execute the javascript as the Content-Type being set by the Dashboard application is text/html instead of text/javascript.
   
   How to resolve this issue?
   
   ### Expected behavior
   
   View APISIX Dashboard Login page
   
   ### How to Reproduce
   
   Place APISIX Dashboard behind a load balancer vip and configure the vip to add the below header in the response
   
   X-Content-Type-Options: nosniff
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 3.4.1
   - OS (cmd: `uname -a`): RHEL 8
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 1.21.4.1
   - etcd version, if have (cmd: run `etcd --version`): 
   - apisix-dashboard version, if have: 3.0
   - Browser version, if have:
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Receiving the error - Refused to execute script because X-Content-Type-Options: nosniff was given and Content-Type is not a script MIME type [apisix-dashboard]

Posted by "YevhenLL (via GitHub)" <gi...@apache.org>.
YevhenLL commented on issue #2893:
URL: https://github.com/apache/apisix-dashboard/issues/2893#issuecomment-2156109989

   Bug is still present.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Receiving the error - Refused to execute script because X-Content-Type-Options: nosniff was given and Content-Type is not a script MIME type [apisix-dashboard]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan commented on issue #2893:
URL: https://github.com/apache/apisix-dashboard/issues/2893#issuecomment-2814344915

   Hi, we will release a new dashboard to address legacy issues. Refer to https://github.com/apache/apisix-dashboard/issues/2981


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Receiving the error - Refused to execute script because X-Content-Type-Options: nosniff was given and Content-Type is not a script MIME type [apisix-dashboard]

Posted by "juzhiyuan (via GitHub)" <gi...@apache.org>.
juzhiyuan closed issue #2893: Receiving the error -  Refused to execute script because X-Content-Type-Options: nosniff was given and Content-Type is not a script MIME type
URL: https://github.com/apache/apisix-dashboard/issues/2893


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org