Blocked by CORS No 'Access-Control-Allow-Origin' header

Hello

Access to XMLHttpRequest at ‘http://kora4uapi.epizy.com/?get=api&do=update_today_match’ from origin ‘http://kora4u.epizy.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

although i’m using this in htaccess & it was working ok in localhost

<IfModule mod_headers.c>
   Header set Access-Control-Allow-Origin "http://kora4u.epizy.com"
 </IfModule>

that give me this as result :confused:

(
    [0] => Array
        (
            [Update] => Update 1672024 0
        )

)```

try to use js XMLhttp request and the request will be blocked :frowning:
i don’t wanna send requests to backend send the backend send request to the server
i wanna get the data direct using ajax

this is another page too , all the data is about football matches and teams , leagues etc…
http://kora4uapi.epizy.com/?get=api&amp;do=fetch_today_matches

so i’m testing the data update time
and this link
http://kora4uapi.epizy.com/?get=api&amp;do=update_today_match
was for updating matches and it returns the last match update id that’s why the returned data looks strange XD

if you know something about sending ajax requests to other websites in infinity free , as if ajax requests to other websites isn’t allowed or something like this.

because i tried most of popular solutions but it did nothing

1 Like

https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/

1 Like

Thanks A lot Oxy , :*
you saved my day from trying to figure out the issue all day :grin:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.