I have tried to use a Ajax call to call a function but i’m getting the below error:
Access to XMLHttpRequest at ‘https://infinityfree.net/errors/404/’ (redirected from ‘http://…ajax/rsvp’) from origin ‘http://…’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Like the URL suggests, being redirected to https://infinityfree.net/errors/404/ means that the URL is returning a 404 Page Not Found error. Please double check the URL you’re sending the request to, because the server can’t locate it.