Hi team, here is what to add in your nginx configuration file to resolve the desired virtual host name
server_name example.com www.example.com;
Hi team, here is what to add in your nginx configuration file to resolve the desired virtual host name
server_name example.com www.example.com;
location ~* ^/log(\/)?$ {
return 404;
}
location ~* ^/swagger(.*)$ {
return 404;
}
set $origin $http_origin; if ($origin !~ '^https?://(docs-mapi)\.4over\.com) { set $origin 'https://yourdomain.com'; } add_header 'Access-Control-Allow-Origin' "$origin" always; add_header 'Access-Control-Allow-Methods' 'GET, POST, DELETE, PUT, PATCH, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'Authorization, Access Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, api_key' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';