|
XRootD
|
Directory dependency graph for XrdHttpCors:Files | |
| XrdHttpCors.hh | |
| XrdHttpCorsHandler.cc | |
| XrdHttpCorsHandler.hh | |
Provides HTTP CORS (Cross Origin Resource Sharing) functionality. For now, the plugin only supports Access-Allow-Control-Origin headers.
Enable the CORS plugin via the XRootD server configuration file:
In the XRootD server configuration file, add trusted origins like the following:
One can also merge the two lines into a single one:
Any HTTP request towards an XRootD HTTP server with CORS configured will receive an 'Access-Allow-Control-Origin: <trusted_origin>' header in all the server replies, provided the Origin header matches one of the trusted origin.
Example: