So, when I open my website from https://www.domain.com, it hits to rest API correctly.
but when I open the website from https://domain.com, laravel API does not hit. I have checked apache access log: I found request there but not in laravel!
@FTIERSCH - ok, thanks for point out on it. However, I still need to find out what configuration might be caused to it.
Is that COR related issue possible in that case?
I actually had exactly the same problem just two hours earlier, where it is a COR issue :D
But if it doesn't hit your Laravel application at all it's not a COR issue, because that would be handled in the browser only. So it would hit your application, return the data and the browser would say "nope, that's invalid data because it's from a bad resource"