Replies: 1 comment
-
ive hit the same issue, have you found an answer? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i serve frondend vue app (prod:
https://testing.example.ru
. dev:http://localhost:9000
)the backend laravel app is served on (prod:
https://api-testing.example.ru
. dev:http://example.test
)i've already had storing method in my MediaController.php that worked without cors issue
however, after i've added register media conversions method to user model, the cors get blocked. i have this issue only on production. on local it works just fine.
User.php
cors.php
api.php
upload file request
ps: i've setup cors & sanctum, they work without issues. please tell me what i'm doing wrong because cors block only when i have media conversions
also, i've noticed that i get the same error if i try to use spatie/image-optimizer
maybe its the issue with accessing path on the server? but why cors error appears? im doing everything on the back and it shouldn't have restrictions like frontend...
Beta Was this translation helpful? Give feedback.
All reactions