AJAX request throws Error 403, please help

I’m pretty new to Development in general and backend/server in particular.

I’m building a live suggestion for my search bar, trying to use AJAX request to fetch data from phpMyadmin database and came across this error.

Access to XMLHttpRequest at 'https://infinityfree.net/errors/403/' (redirected from 'http://chillix.epizy.com/assets/includes/suggestmovie.php?request=a') from origin 'http://chillix.epizy.com' 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.

I have read about non-supported features of Infinity Free here; however it seems to apply to cross-domain websites?

anyone please could help explain to me?

Much appreciated!
Lap

This URL is throwing 403 forbidden error, that’s why your AJAX request is failing.

  1. try to rename includes folder to something else.
4 Likes

Oh damn! It WORKED!!! You’re my savior!
I have been struggling with this error for hours and hours trying many different things.
Could you help explain to me what “includes” folder has to do with this error?

I think it has something to do with server configuration.

2 Likes

I think, correct me if im wrong, its a folder reserved for your website only, and can only be accessed using the PHP require() or include(), and will throw 403 if accessed from anywhere else.

2 Likes

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