This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 614
Laravel 8 Error Cors #539
Comments
I have same problem. If you upgrade Laravel version, then it is over. |
I was able to solve the problem in this way, in my case it was due to a configuration that needed the web.config file, I had to add the following
And my file stayed like this
This alone still gives a Cors error, but it is due to the implementation of the fruitcake that the laravel version already brings, it is only necessary to comment that class in the kernel
Now with this it works fine |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have an Api Rest with Laravel 8 and a front-end with VueJS, everything works fine from postman, but when making requests from Vue it gives cors error.
I also tried creating a Cors middleware that contains the following:
It also keeps throwing cors error, the library that includes the laravel version is: "fruitcake / laravel-cors": "^ 2.0", but this still doesn't work.
How could I fix my cors error?
The text was updated successfully, but these errors were encountered: