Cors blocked

Username (e.g. epiz_XXX) or Website URL

http://ul-info.rf.gd

Error Message

Access to XMLHttpRequest at ‘http://api.ul-info.rf.gd/api/v1/courses/videos’ from origin ‘http://www.ul-info.rf.gd’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Other Information

Hello, I have a react app running on my website, and a subdomain(api.ul-info.rf.gf) that I want to request some JSON data from, my backend responds with the required CORS headers perfectly, but I receive an HTML page (When performing a GET Request) instead of JSON Data, the HTML page contains a javascript code that redirects to the requested resource and appends “?i=1” to the end of it, see the attached picture below

Please read this article:

5 Likes

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