Disable Chrome strict MIME type checking

前端 未结 6 1808
青春惊慌失措
青春惊慌失措 2020-11-28 08:10

Is there any way to disable strict MIME type checking in Chrome.

Actually I\'m making a JSONP request on cross domain. Its working fine on Firefox but,

6条回答
  •  南方客
    南方客 (楼主)
    2020-11-28 08:34

    In my case, I turned off X-Content-Type-Options on nginx then works fine. But make sure this declines your security level a little. Would be a temporally fix.

    # Not work
    add_header X-Content-Type-Options nosniff;
    # OK (comment out)
    #add_header X-Content-Type-Options nosniff;
    

    It'll be the same for apache.

    
      #Header set X-Content-Type-Options nosniff
    
    

提交回复
热议问题