Complete the code to add a custom header named X-Custom-Header with value MyValue.
add_header [1] MyValue;The add_header directive requires the exact header name. Here, X-Custom-Header is the correct header name to add.
Complete the code to add a header named Cache-Control with value no-cache.
add_header [1] no-cache;The standard header to control caching is Cache-Control. It must be written exactly as shown.
Fix the error in the code to correctly add the header Strict-Transport-Security with value max-age=31536000.
add_header [1] max-age=31536000;
The correct header name is Strict-Transport-Security with hyphens. Other forms are invalid and cause errors.
Fill both blanks to add a header named X-Frame-Options with value SAMEORIGIN.
add_header [1] [2];
The header X-Frame-Options controls if the page can be framed. The value SAMEORIGIN allows framing only from the same site.
Fill all three blanks to add a header named Content-Security-Policy with value default-src 'self'; script-src 'none'.
add_header [1] "[2] [3]";
The Content-Security-Policy header controls allowed content sources. The value must be quoted and include directives like default-src 'self'; script-src 'none';.