I have a welcome page in my website on Wordpress (that uses php)
I need to allow other websites to access the header.
So,I need to add something like
@header( 'Access-Control-Allow-Origin: www.OTHERWEBSITE.com' );
Where do I add the header so that the OTHERWEBSITE can access MYWEBSITE's resources?
If I use
curl -I -L www.MYWEBSITE/welcome.html
then I need to get the header info
I do not have a header.php page in the resources. Do i need to build one?
Where am I supposed to use it?
With FALSE as second parameters to no allowed overwriting headers
header( 'Access-Control-Allow-Origin: www.OTHERWEBSITE.com', false );
In general this allow somes domains to access to your ressources (API REST, SOAP, Webservices ...) all sites who need cross site scripting we can talk about google, youtube, twitter, but also private api's ... etc)