403 forbidden error when displaying svg image

喜夏-厌秋 提交于 2019-12-24 07:35:04

问题


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.

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

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

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


回答1:


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.



来源:https://stackoverflow.com/questions/25157431/403-forbidden-error-when-displaying-svg-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!