skip to Main Content

XMLHttpRequest blocked by CORS Policy on axios.post – Apache

The axios.post (code below) must send data to url api/add-todo, but I get these errors: axios.post('http://localhost/vueoctober/todo/api/add-todo', todo).then(function (response) { console.log(response); }).catch(function(error) { console.log(error); }); The route api/add-todo is handled with October method Route::get() (https://octobercms.com/docs/services/router). Why is it not found? If…

VIEW QUESTION

This site can’t be reached – XAMPP ignores custom domain vhosts – Apache

Environment XAMPP 7.2.4 installed on Windows 10 Apache running on ports 80 and 443 Configuration C:WindowsSystem32driversetchosts: 127.0.0.1 www.test.local test.local C:xamppapacheconfhttpd.conf: DocumentRoot "D:/htdocs" <Directory "D:/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> C:xamppapacheconfextrahttpd-vhosts.conf: <VirtualHost *:80> DocumentRoot D:/htdocs…

VIEW QUESTION
Back To Top
Search