Я пытаюсь установить несколько заголовков Nginx, работающих на Google App Engine B4.
Это фрагмент кода, который я поместил в свой app.yaml file:
runtime_config:
nginx_conf_http_include: nginx-http.conf
Это содержимое файла nginx -http.conf :
# Security headers
server_tokens off;
add_header X-Frame-Options SAMEORIGIN always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header Content-Security-Policy "default-src 'self';" always;
add_header Referrer-Policy no-referrer;
add_header Feature-Policy "geolocation none;midi none;notifications none;push none;sync-xhr none;microphone none;camera none;magnetometer none;gyroscope none;speaker self;vibrate none;fullscreen self;payment none;";
Ни один из этих заголовков недоступен после развертывания .
Ребята, помогите пожалуйста!