开发者社区> 问答> 正文

如何减轻XSS在烧瓶应用

当我运行bandit测试时,我得到了可能的XSS在flask的应用程序。

    @app.route('/')
    @app.route('/documentation')
    def document_root():
        return redirect('/v0/ui')

    @app.route('/editor')
    def document_editor():
        return redirect('/static/swagger-editor/index.html')

问题来源StackOverflow 地址:/questions/59465925/how-to-mitigate-xss-in-flask-application

展开
收起
kun坤 2019-12-25 16:02:00 366 0
1 条回答
写回答
取消 提交回答
  • 没办法把

    2019-12-25 17:46:26
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载