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

前端 未结 5 1729
天命终不由人
天命终不由人 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 05:19

    The value of {{userOwnerAvatar}} is not resolving correctly, which is why your browser is saying that "http://localhost:3000/images/" was interpreted as text/html (note the lack of the actual image filename in that URL). Fix your template helper :-)

提交回复
热议问题