Meteor: Resource interpreted as Image but transferred with MIME type text/html

前端 未结 5 1661
天命终不由人
天命终不由人 2021-01-19 04:34

I am using Meteor 0.5.2 and getting following warning in Chrome for each of images which have their src generated by a template helper:

Resource interpreted          


        
5条回答
  •  囚心锁ツ
    2021-01-19 04:55

    This is the insecure content warning generated by Chrome, saying that the server is sending wrong or missing Content-type in HTTP header. Sometimes this also happens when loading custom Javascript or CSS, etc.

    I have also experienced the same issue. Here, the browser expects Content-type: image/jpeg, but it is interpreted as text/html. Because you don't specified the content-type in your helper.

    These are simply a type warnings that has no impact on running the application.

提交回复
热议问题