All Questions
385
questions
0
votes
1
answer
55
views
Laravel, Nuxt config for headers (cors)
error:
http://localhost:8000/sanctum/csrf-cookie' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
...
-1
votes
0
answers
41
views
Vue js and Laravel SPA Facebook authentication CORS error
I'm trying to make authentication with Facebook in my vue js and laravel project and I'm getting this error:
This is my login function in the vue js:
const loginWithFacebook = async () => {
...
0
votes
0
answers
46
views
how to add cors origin in public folder laravel
Access to font at 'http://127.0.0.1:8000/webfont.woff' from origin 'http://localhost:8001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource....
0
votes
0
answers
25
views
How to get cors headers working in Laravel 9
For some reason, cors headers are not showing up in my Laravel 9 application. I've set the URLs in config/cors.php, allowed_origin, but i still get "(Reason: CORS header ‘Access-Control-Allow-...
0
votes
0
answers
76
views
Laravel - CORS issue on Mac using Herd
I just migrated from Windows to Mac and I'm using Herd to manage my PHP instance and Docker for the MySQL database, and I pulled down and installed a project that I've been working on. I can install ...
0
votes
1
answer
204
views
how can fix this cors issue laravel 11 reverb api use in react js
WebSocket connection established
messages-inbox:1 Access to XMLHttpRequest at 'http://localhost:8080/api/broadcasting/auth' from origin 'http://localhost:3000' has been blocked by CORS policy: ...
-1
votes
1
answer
42
views
CORS issue when calling laravel api from React application
I have a laravel(8.12) backend application running on Xampp with PHP(8) on url http://localhost/testbe
My frontend is running on http://localhost:3000
My frontend is making get api via axios.
Axios ...
1
vote
3
answers
3k
views
Laravel 11 Cors issue
I've configured my laravel 11 application to handle cors using the following cors.php file in the config dir
<?php
return [
'paths' => ['*'],
'allowed_methods' => ['GET, POST, PUT, ...
0
votes
2
answers
94
views
No 'Access-Control-Allow-Origin' CORS error in Laravel 10 and ReactJS
We have deployed a Laravel 10 - React JS web application on windows server.
API is working, tried it on postman.
Web pages for our front-end is also working, except when executing api. It is showing a ...
0
votes
1
answer
43
views
one specific post request throws CORS error
I have the same articleForm.vue to update and create a new article, depending on if I want to create or update an article I access the vuex store like this.
async function createArticle(article: any) {...
0
votes
0
answers
27
views
NuxtJS SPA + Laravel API CORS Error even though SANCTUM_STATEFUL_DOMAINS etc is set
I've installed laravel + breeze and NuxtJS
The request in my nuxt app is as follows:
await useFetch('http://localhost:8000/sanctum/csrf-cookie', {
credentials: 'include',
});
const token = useCookie('...
0
votes
1
answer
34
views
Override X-Frame-Origin SAMEORIGIN
So I have an API endpoint which holds a form. At a different domain, I render this form in an iframe. of course I get CORS errors. Now I want to override the X-Frame-Origin, but it keeps setting it to ...
0
votes
3
answers
98
views
Error with CORS in project with Angular and Laravel
I'm working on a web project where I'm using Angular and Laravel. I managed to create a registration form successfully, thus creating users and solving the CORS issue. Now I'm facing a similar problem ...
0
votes
1
answer
163
views
How to resolve CORS issue with Laravel when Access-Control-Allow-Credentials header is not set correctly?
I'm encountering a CORS issue with my Laravel application. I have a custom CORS middleware (OwnCors) that I'm using to handle CORS requests. Despite configuring it to allow credentials, I'm facing an ...
-1
votes
2
answers
92
views
Ensure CORS response is valid for single-SPA
I'm encountering a specific CORS issue (please refer to the attached image for details). My application, built on a microservice architecture, utilizes Laravel for the backend and single-spa for the ...