douhan0562 2017-03-06 07:05
浏览 26

在PC(MAMP)上本地运行的symfony服务器不显示图像

I am running a symfony server on my local PC machine using MAMP for my stack. Everything seems to work fine except the images won't load in the views. If I try navigating to the image directly, the browser (Chrome and Firefox) downloads the images instead of displaying them. This leads me to believe I have MIME type issues, but I am not sure how to check what the symfony server is trying to do.

I am also seeing a couple console warnings when I try to load css files, that look like this is Chrome:

Resource interpreted as Stylesheet but transferred with MIME type >application/x-gzip: "http://127.0.0.1:8000/css/styles.css"

Any help is greatly appreciated

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 单片机学习顺序问题!!
    • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
    • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
    • ¥15 相敏解调 matlab
    • ¥15 求lingo代码和思路
    • ¥15 公交车和无人机协同运输
    • ¥15 stm32代码移植没反应
    • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
    • ¥100 连续两帧图像高速减法
    • ¥15 如何绘制动力学系统的相图