Wondering what’s next for npm?Check out our public roadmap! »

    @nitra/cf-security

    1.1.1 • Public • Published

    cf-security

    Check security header in Cloud Functions

    X_NITRA_CF_KEY: secret
    
    const { cfSecurity } = require('@nitra/cf-security')
    
    exports.function = async (req, res) => {
      if (!cfSecurity(req)) {
        res.send(`Nitra security not passed`)
        return
      }
    

    Keywords

    none

    Install

    npm i @nitra/cf-security

    DownloadsWeekly Downloads

    7

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    1.96 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar