We get weekly security scans from SecurityScoreCard, and all our forwarding URLs are impacting our score.
For example, we have a redirect from https://mail.DOMAIN.com/ + http://mail.DOMAIN.com/ --> https://login.microsoftonline.com/
This gives us the following non-conformities:
Does not implement X-XSS-Protection Best Practices
Insecure HTTPS Redirect Pattern
Does not implement HSTS Best Practices
CSP Missing
I’ve searched the forums, and even though this has been raised before, it does not seem to provide an answer.
Is mail.DOMAIN.com set to on the DNS tab of the Cloudflare dashboard?
Have you set SSL Mode to Off on the SSL/TLS tab?
Is this redirect. done in a page rule?
HSTS best practice recommends that you redirect http immediately to the same hostname on https. The easiest way to achieve this is by using the “Always Use HTTPS” option, and to explicitly target https://mail.example.com/* in your page rule.
(If SSL Mode is set Off, then Cloudflare will issue a https --> http redirect, which was my initial line of questioning.)