显示svg图像时出现403禁止错误 [英] 403 forbidden error when displaying svg image

查看:212
本文介绍了显示svg图像时出现403禁止错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Hostgator服务器上,试图显示svg图像,但该图像未显示,我只得到一个残破的图像"图标.

I'm on a Hostgator server, trying to display a svg image, but the image doesn't display, I only get a 'broken image' icon.

当我直接访问svg文件时,它显示403 - forbidden错误.

When I'm accessing the svg-file directly, it shows a 403 - forbidden error.

这仅在Hostgator服务器上发生吗?上传之前,在本地计算机上显示它没有任何问题.

Does this only occur on Hostgator servers? I didn't have have a any problems displaying it on my local machine, before upload.

我已经搜索过Google和Stack Overflow,但没有找到解决此问题的运气.

I have searched Google and Stack Overflow, but had no luck in finding a fix for this.

推荐答案

确保文件许可权正确,并且它们不是阻止SVG文件的任何防火墙角色. 您可以尝试另一个svg文件. 您也可以尝试上传扩展名为SVG的测试文件,以查看问题所在.

Make sure that the file permission is correct and their aren't any firewall role that blocks the SVG files. you can try another svg file. also you can try to upload a test file with SVG extension to see that is the problem.

这篇关于显示svg图像时出现403禁止错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆