Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

microsoftarchive/handlebars-anti-clickjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

Simple handlebars helper for preventing iframe click jacking

Why should I use it?

Educate yaself https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet

How do I use it?

npm install --save handlebars-anti-clickjack

Wherever you are handling your helpers, add it like so:

var clicky = require('handlebars-anti-clickjack')
clicky.register(handlebars)

In the head of your main template add {{{anti-clickjack}}}

How do i use a custom name for the helper

var clicky = require('handlebars-anti-clickjack')
handlebars.registerHelper('my-helper', clicky.helper(handlebars))

About

Simple handlebars helper for preventing iframe click jacking

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published