Thanks very much. How can I allow CORS in infinityfree? It is blocking my vue application from accessing laravel api.
@eraufi3 ай бұрын
you are welcome. they won't allow CORS in free hosting. for that you have to switch to premium hosting. as it mentioned here. forum.infinityfree.com/t/cors-issue/92299
@atduongtuan74252 ай бұрын
wow, thank you. What laravel version are you using?
@eraufi2 ай бұрын
laravel 11
@jeslyndanielleella4084 ай бұрын
Hello! After I successfully uploaded my laravel files in filezilla and created my .htaccess file, I tried to go to my domain. Unfortunately, it gave me an error. It says "500 Internal Server Error Something on the website crashed!". Do you have an idea on how to resolve this?
@jeslyndanielleella4084 ай бұрын
I have also already set up the database but it still has the error
@eraufi4 ай бұрын
hello. please check the debugging part at 13:15 if still you get the 500 error. then it mean some files are missing. you can check 1:18 for the installation of packages you have to 1: delete vendor and composer.lock 2:run composer install --optimize-autoloader --no-dev
@jeslyndanielleella4083 ай бұрын
@@eraufi Thanks for the reply! Then should I reupload the vendor and composer.lock after I run composer?
@eraufi3 ай бұрын
@@jeslyndanielleella408 yes
@user-fy9zv4uf1d4 ай бұрын
The uploaded image is not showing
@eraufi4 ай бұрын
how do you call them? in my website i usually do {{URL::asset('PATH_OF_IMAGE')}} you can check here stacktips.rf.gd/lazy-load or in my github github.com/ERaufi/LaravelProjects
@salaccarljosepht.8681Ай бұрын
I have the same problem. Did you solve this? I'm using vite
@codeurWindev5 ай бұрын
Error 500 Or the domain is not activated
@eraufi5 ай бұрын
it will take some time to get activated. you can check the status in your control panel. otherwise turn on the debug to find the error you can check at 13:15 of this video
@user-vy9iw8qn9c4 ай бұрын
always says : 403 Forbidden
@eraufi4 ай бұрын
can you please give me some more information in which part you are getting 403 forbidden? please watch 13:15 to see how to debug
@sulthanrafli38164 ай бұрын
idk my .htaccess doesnt work, its always direct to index2.html, not my project, if delete index2.html i get error 403 Forbidden Server or website configuration is blocking you from viewing this page
@eraufi4 ай бұрын
1: you can turn on the debug mode to find the problem you can see 13:16 in the video. 2: this is the .htaccess content see if you had it like this RewriteEngine On RewriteRule ^(.*)$ /LaravelProjects/public/$1 [L]
@sulthanrafli38164 ай бұрын
@@eraufi i change my .htaccess file and work now. Thanks
@eraufi4 ай бұрын
@@sulthanrafli3816 great. you are wellcome
@dansonmwangi56604 ай бұрын
@@eraufi Hi, what is the syntax for accessing index.php that is in the root folder via htaccess?
@eraufi4 ай бұрын
@@dansonmwangi5660 this is the sytex of .htaccess you can change the third line to redirect to any folder you want RewriteEngine On RewriteRule ^(.*)$ /LaravelProjects/public/$1 [L]