- perform clean install (main tab)
- go to the Admin Console login screen
- confirm that these response headers are present (using the Web Browser Developer Tools):
- X-Content-Type-Options: nosniff
- X-Frame-Options: sameorigin
- repeat the previous 2 steps, but for the Front-End (separate tab)
- login to Admin Console (main tab)
- go to the Configuration → Website → Advanced section
- confirm that Extra HTTP Headers system setting:
- is present
- has as multi-line value
- has X-Content-Type-Options: nosniff line present
- has X-Frame-Options: sameorigin line present
- replace contents of the Extra HTTP Headers system setting with X-Redirect-By: In-Portal and save changes
- confirm that page response now contains X-Redirect-By: In-Portal header instead of the X-Content-Type-Options: nosniff and X-Frame-Options: sameorigin headers
- confirm, that for Front-End as well (separate tab)
- go to the Configuration → Website → Site Domains section
- create a site domain that will match the visited domain on the Front-End
- confirm that a Extra HTTP Headers field is present and is empty
- confirm that on Front-End (separate tab) the headers from the Extra HTTP Headers system setting are being sent
- change the site domain (main tab) and put X-Redirect-By: My-Site-Domain value into the Extra HTTP Headers field
- visit the Front-End (separate tab)
- confirm that Extra HTTP Headers set on site domain level override ones that are set via a system setting
- repeat all the above steps for In-Portal website, that was just upgraded
Details
Details
- Reviewers
erik
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.2.x
- Lint
Lint Errors Excuse: Unrealted. Severity Location Code Message Error core/kernel/application.php:1242 PHPCS.E.CodingStandard.Commenting.InlineComment.InvalidEndChar CodingStandard.Commenting.InlineComment.InvalidEndChar Error core/kernel/application.php:1242 PHPCS.E.CodingStandard.Commenting.InlineComment.NotCapital CodingStandard.Commenting.InlineComment.NotCapital Error core/units/site_domains/site_domains_config.php:102 PHPCS.E.CodingStandard.Arrays.Array.SpaceAfterKeyword CodingStandard.Arrays.Array.SpaceAfterKeyword Error core/units/site_domains/site_domains_config.php:102 PHPCS.E.Generic.PHP.LowerCaseKeyword.Found Generic.PHP.LowerCaseKeyword.Found - Unit
No Unit Test Coverage - Build Status
Buildable 11094 Build 3794: arc lint + arc unit