#78488Add rel="noopener noreferrer" to links when target is set to _blank
Description
Hey there,
is there a solution for the known security issue with which one the websites are vulnerable for phishing with javascripts “window.opener.location”?
To prevent this issue you have to add an attribute rel=“noopener noreferrer” to every a-Tag which opens an external link (see https://mathiasbynens.github.io/rel-noopener/).
I tried to insert this attribute to the core in the function “\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->typoLink()” but there is no possibility to add dynamic attributes to an link.
Is it possible to add a typoscript configuration like “page.config.extTarget” for the “rel” attribute?
The current workaround is to add this attribute with javascript – but I think there should be a solution from the TYPO3 core. What do you think?
Regards,
Markus
Reviews 1
Related issues 9
- Feature #5341Page's "target" field inprovments
- Feature #34288Typolink should allow rel attribute
- Bug #89338Links such as tel: ... in content elements cause an error
- Task #89347Provide strong defaults for anchor noreferred/noopener attribute
- Bug #89757Fix noopener noreferrer issue
- Bug #89771rel="noreferer" should be set for all new windows, not just _blank
- Bug #95051rel="noreferrer" is not set by cross site links
- Task #96379[FEATURE] Add rel="noopener noreferrer" to all f:link.external links
- Bug #107771Allow rel="noopener" to be used instead of rel="noreferrer"