XSS in JavaScript

    0

    0

    Ryan Wilson

    const express = require('express')
    const router = express.Router()
    
    router.get('/greeting', (req, res) => {
      const { name }  = req.query;
      res.send('<h1> Hello :'+ name +"</h1>")
    })
    
    router.get('/greet-template', (req,res) => {
      name = req.query.name
      res.render('index', { user_name: name});
    })
    
    module.exports = router
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.