(04-29-2020, 05:36 PM)Gary Wrote: I'd suggest starting to look in App.php - there is a $baseURL variable spec'd there... and to get it working, perhaps checking $CSPEnabled=false is set (which I think is probably the default) - the idea is you want to have those two paths (in your cut&paste) the same (first prize), OR the CORS policy to be relaxed (as a temporary measure so you can work with the code).
Gary, you absolutely nailed it. Believe it or not the problem was fixed in my very first attempt!
I opened the app.php file and went directly to $baseURL. There I realized that it was configured to point to 'http://localhost/curso-codeigniter4/'. The problem is that I already had configured before my local server (XAMPP) to a virtual host called 'http://curso-ci4/'.
Long story short, as soon I changed $baseURL to point to the virtual host it worked instantly in the very first F5 stroke.
Now I have the small flame at the bottom right bar of my screen and all the odd errors in console has vanished!
Thanks for the detailed instructions!
Recovering the wasted time...