id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,uname,nginx_version 2327,Adding cross-domain configuration in HTTP2 is invalid,yl-yue,,"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 ",defect,closed,critical,nginx-1.21,nginx-core,,duplicate,"http2,cors",yl-yue,docker pull nginx:1.21.6,docker pull nginx:1.21.6