mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
✨ Protect external links
This commit is contained in:
parent
9e5166d991
commit
fe4cab3a9e
1 changed files with 3 additions and 1 deletions
|
@ -399,7 +399,9 @@
|
|||
([uri]
|
||||
(open-new-window uri "_blank"))
|
||||
([uri name]
|
||||
(js/window.open (str uri) name)))
|
||||
;; Warning: need to protect against reverse tabnabbing attack
|
||||
;; https://www.comparitech.com/blog/information-security/reverse-tabnabbing/
|
||||
(.open js/window (str uri) name "noopener,noreferrer")))
|
||||
|
||||
(defn browser-back
|
||||
[]
|
||||
|
|
Loading…
Add table
Reference in a new issue