nginx set header access-control-allow-origin code example Example: cors access-control-allow-origin header to nginx add_header 'Access-Control-Allow-Origin' 'origin'