Custom Query (2311 matches)
Results (73 - 75 of 2311)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#2327 | duplicate | Adding cross-domain configuration in HTTP2 is invalid | ||
Description |
Invalid configuration as follows: server { listen 8080 http2; server_name localhost; location / { add_header 'Access-Control-Allow-Origin' $http_origin always; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Headers' 'keep-alive,user-agent,cache-control,content-type,x-user-agent,x-grpc-web,grpc-timeout,device-tag'; if ($request_method = 'OPTIONS') { return 204; } grpc_pass grpc://192.168.0.12:31201; } } After debugging, the add_header command in http1.1 takes effect. After http2 is added, the add_header command becomes invalid |
|||
#2302 | invalid | Adding `proxy_hide_header` to `location` context completely deactivates `proxy_hide_header` directives in `server` context | ||
Description |
This behavior was discovered first on 1.18.0 (Ubuntu 20.04) but can be reproduced with the latest docker container. events { worker_connections 1024; } http { server { listen 80; proxy_http_version 1.1; proxy_ssl_server_name on; #doesn't work unless `proxy_hide_header` in location / is removed proxy_hide_header Link; location / { proxy_pass https://www.nginx.com; #works, but `proxy_hide_header` in `server` context stops working proxy_hide_header X-Pingback; } } } sudo docker run -p 3000:80 -it -v /home/dmitry/nginx.conf:/etc/nginx/nginx.conf:ro nginx curl localhost:3000/ -I
You'll see that Link header is passed to curl (even though |
|||
#854 | wontfix | Add inherited keyword for altering directive inheritance | ||
Description |
I wanted to set a few basic headers for all of my HTTP responses in nginx, however the current behaviour of
I'd like to propose the addition of an
However, it is likely that this override may be useful for other directives that aren't inherited by default as well. The only one that springs to mind is
In my particular use case I was hoping to add the It's fairly trivial in this case I admit, but I think that allowing users to override inheritence behaviour when they know they want to is useful. |