Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: checkmarx-CXSPA-665: add rel attribute to anchors #15987

Merged
merged 2 commits into from
Jul 13, 2022

Conversation

FollowTheFlo
Copy link
Contributor

This PR target 5.0.x branch.
It is the same PR that was merged into 'develop': #15932

see https://jira.tools.sap/browse/CXSPA-665 for details
this fix: add rel="noopener noreferrer" attribute to the 7 anchors that are using using target _blank.
tested with pdf and 'terms and conditions' links, and AMP.
those change enforce security:
'noopener' -> new tab page does not have access to document obj of launcher page
'noreferrer' -> (referrer property not set in header)
see details on https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types

@FollowTheFlo FollowTheFlo requested a review from a team as a code owner July 11, 2022 22:12
@cypress
Copy link

cypress bot commented Jul 11, 2022



Test summary

408 0 1 0Flakiness 4


Run details

Project spartacus
Status Passed
Commit 6773c27 ℹ️
Started Jul 13, 2022 12:09 AM
Ended Jul 13, 2022 12:22 AM
Duration 12:37 💡
OS Linux Ubuntu - 20.04
Browser Electron 91

View run in Cypress Dashboard ➡️


Flakiness

ssr/pages.core-e2e-spec.ts Flakiness
1 SSR > should render homepage
2 SSR > should render PLP
3 SSR > should render PDP
regression/asm/asm.core-e2e-spec.ts Flakiness
1 Assisted Service Module > Customer Support Agent - Emulation > should test customer emulation

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@FollowTheFlo FollowTheFlo merged commit 85ae499 into release/5.0.x Jul 13, 2022
@FollowTheFlo FollowTheFlo deleted the fix/CXSPA-665 branch July 13, 2022 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants