nginx restrict access to https access-control-allow-origin code example Example: nginx enable cors add_header Access-Control-Allow-Origin *;