# Laravel - Access to XMLHttpRequest from origin has been blocked by CORS

**URL:** <https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705>\
**Category:** Bugs\
**Created:** [September 2, 2023, 1:12am UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705 "2023-09-02T01:12:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junglini](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/j/c4cdca/32.png) [@Junglini](https://forum.radsystems.io/u/Junglini)\
**Post date:** [September 2, 2023, 1:12am UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705/1 "2023-09-02T01:12:17Z")

</div>

i published my project and when i want to use the api it tells me this.

Access to XMLHttpRequest at ‘api’ from origin ‘frontend’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status.

I use laravel 7.24

---

<div class="post-metadata">

**Author:** ![ammar](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/a/9fc348/32.png) [@ammar](https://forum.radsystems.io/u/ammar)\
**Post date:** [September 11, 2023, 1:28pm UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705/2 "2023-09-11T13:28:08Z")

</div>

same issues with me I use laravel 7.3

---

<div class="post-metadata">

**Author:** ![willvin](https://forum.radsystems.io/user_avatar/forum.radsystems.io/willvin/32/7_2.png) [@willvin](https://forum.radsystems.io/u/willvin)\
**Post date:** [September 11, 2023, 1:35pm UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705/3 "2023-09-11T13:35:48Z")

</div>

First make sure it works well on you localhost, after that follow and read the instructions here [https://forum.radsystems.io/t/publishing-your-radsystems-project/294](https://forum.radsystems.io/t/publishing-your-radsystems-project/294).

---

<div class="post-metadata">

**Author:** ![kafecadm](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/k/7ea924/32.png) [@kafecadm](https://forum.radsystems.io/u/kafecadm)\
**Post date:** [September 25, 2024, 1:26am UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705/4 "2024-09-25T01:26:07Z")

</div>

I have the same error message, the issue here is that all the API’s work except for the “account” endpoint which launches the error when accessed in production. In local env work perfectly. I have requested help several times in the slack channel, I’ve contacted you guys personally but had no answer, so please I really need to fix this.

---

<div class="post-metadata">

**Author:** ![willvin](https://forum.radsystems.io/user_avatar/forum.radsystems.io/willvin/32/7_2.png) [@willvin](https://forum.radsystems.io/u/willvin)\
**Post date:** [September 27, 2024, 9:24am UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705/5 "2024-09-27T09:24:41Z")

</div>

Try this:

> **[Debugging Tips: A Guide to Fixing Cors Deployment Issues in Radsystems Studio...](https://blog.willvin.com/debugging-tips-a-guide-to-fixing-common-deployment-issues-in-radsystems-studio-web-development/)**
>
> Deploying a Laravel application can be both exciting and challenging. However, it’s not uncommon to encounter issues during the deployment process. In this guide, we’ll explore some common problems and their solutions, specifically focusing on...

---

<div class="post-metadata">

**Author:** ![kafecadm](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/k/7ea924/32.png) [@kafecadm](https://forum.radsystems.io/u/kafecadm)\
**Post date:** [October 1, 2024, 4:38pm UTC](https://forum.radsystems.io/t/laravel-access-to-xmlhttprequest-from-origin-has-been-blocked-by-cors/1705/6 "2024-10-01T16:38:52Z")

</div>

it worked… thank you so much.
