I'm trying to make a call GET/AJAX
to a URL
which is different from the one I'm calling, but I always get the message in the browser:
Failed to load link : In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' link ' is therefore not allowed access.
I have tried to do both server Apache
and NGINX
and to enable CORS
in several ways according to the documentation and some tips. I even tried via PHP
add header
:
<?php header("Access-Control-Allow-Origin: *"); ?>
But I always get the blocking message from CORS
. Via POSTMAN
the call normally occurs.
Should I ask the server administrator to release the IP of my server to make the calls or am I mistakenly configuring CORS or the call from my side on the server?