i got this unexpected err in my console in laravel project :
"Access to XMLHttpRequest at 'https://bff-api-gw.dsers.com/account-user-bff/v1/stores/user/list' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."
please anyone help
@Shamp You don't know from where ? Who has written the code ?
Same question, show the code you are using to send the ajax request.
Typically if you have a problem with Access-Control-Allow-Origin, this means that you attemp to access an API with a source code from a web adress not allowed by the API.
If you are using a third party API, perhaps you need to allow your API consumer website address.
@vincent15000 i edit the main route '/' and let the controller view a page with h1 only without any javascript files rendered
the console still give the main ajax cors error ? !!!