Add a cross-origin resource sharing (CORS) header to the response
The following viewer response function adds an
Access-Control-Allow-Origin
HTTP header to the response if the response
doesn’t already contain this header. This header is part of cross-origin resource
sharing (CORS)*
) tells web browsers to
allow code from any origin to access this resource. For more information, see Access-Control-Allow-Origin