Apache / .htaccess
Header always set Strict-Transport-Security \
"max-age=300"The certificate, canonical HTTPS address and permanent HTTP redirect must work first. The safest route is to ask hosting support for HSTS without preload or subdomain coverage.

Hello,
HTTPS and the HTTP redirect work for example.com.
Please enable one Strict-Transport-Security header.
Start with a short max-age without preload
or includeSubDomains, then increase it after testing.
Do not cover subdomains without approval.max-age=300 and test the main site.includeSubDomains only after checking every subdomain.Header always set Strict-Transport-Security \
"max-age=300"add_header Strict-Transport-Security \
"max-age=300" always;Do not add HSTS simultaneously in a CDN, panel, Nginx and .htaccess. Duplicate policies can conflict. Send the header over HTTPS only.
Only after extended testing of the main site and every subdomain. Submission requires at least max-age=31536000, includeSubDomains and preload, but the directive itself does not add the domain to the list. Removal can take months.
After configuration, perform an independent HSTS check.