and in the file header.php adding these lines:
<FilesMatch "\.(php)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule>
I tryed these solutions one by one and both together but with no success. In the console I always see the same message.
header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Methods: PUT, GET, POST"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
From novice to tech pro — start learning today.