I just made a request for data by ajax to my database, but I answered the following:
Failed to load link : Redirect from ' link ' to ' link ' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' link ' is therefore not allowed access.