Image Not Loading on Canvas

后端 未结 4 986
生来不讨喜
生来不讨喜 2021-01-19 07:30

My issue is that I am having problems loading locally hosted images on to the canvas. I have tried hosting the code on a web server, using XAMPP, and locally, and the LightB

4条回答
  •  佛祖请我去吃肉
    2021-01-19 08:01

    One feature that prevents XAMPP from processing a canvas script is mod_rewrite.This is a simple fix, apparently. this is how..

    1:
    Open apache’s configuration file using your favorite text editor. The configuration file generally locates at:{apache_dir}/conf/httpd.conf If you are using XAMPP or WAMP package then you will find the file at:{xampp_dir}/apache/conf/httpd.conf {wamp_dir}/apache/conf/httpd.conf
    2:
    Search for the following string:#LoadModule rewrite_module modules/mod_rewrite.soand uncomment it (remove the ‘#’ sign).
    3:
    Now search for another string AllowOverride None and replace it by AllowOverride All
    4:
    Finally save the changes, close your text editor and restart your apache server.

    That SHOULD set your localhost to the right paramaters.

提交回复
热议问题