location / {
proxy_pass $arg_url;
add_header Access-Control-Allow-Origin *;
}
[error] 8#8: *1 invalid URL prefix in "ya.ru", client: 10.255.0.188, , request: "GET /?url=ya.ru HTTP/1.1"
location / {
resolver 8.8.8.8;
proxy_pass http://$arg_url;
add_header Access-Control-Allow-Origin *;
}