9951 explained code solutions for 126 technologies


nginxSet access-control-allow-origin header


server {
  add_header "Access-Control-Allow-Origin" "example.org";
}ctrl + c
server {

virtual server configuration block

add_header

sets specified header

Access-Control-Allow-Origin

set CORS header to control access from origins

example.org

sample origin to allow