= CORS (cross origin resource sharing) = * https://www.tutorialspoint.com/spring_boot/spring_boot_cors_support.htm Cross-Origin Resource Sharing (CORS) is a security concept that allows restricting the resources implemented in web browsers. It prevents the JavaScript code producing or consuming the requests against different origin. * https://en.wikipedia.org/wiki/Cross-origin_resource_sharing The CORS standard describes new HTTP headers which provide browsers a way to request remote URLs only when they have permission == Headers == * https://en.wikipedia.org/wiki/Cross-origin_resource_sharing#Headers Response headers * Access-Control-Allow-Origin * Access-Control-Allow-Credential == PHP example == === read.example.org/index.php === {{{#!highlight php }}} === auth.example.org/index.php === {{{#!highlight php }}} === app.example.org/index.html === {{{#!highlight html

}}} === Apache vhosts configuration === {{{ ServerName app.example.org DocumentRoot "/var/www/htdocs/app.example.org" Require local AllowOverride All ServerName auth.example.org DocumentRoot "/var/www/htdocs/auth.example.org" Require local AllowOverride All ServerName read.example.org DocumentRoot "/var/www/htdocs/read.example.org" Require local AllowOverride All }}}