GithubHelp home page GithubHelp logo

请教个问题 about learningmpaabp HOT 2 CLOSED

sheng-jie avatar sheng-jie commented on July 19, 2024
请教个问题

from learningmpaabp.

Comments (2)

sheng-jie avatar sheng-jie commented on July 19, 2024

我看到你的action都用ValidateAntiForgeryToken特性关闭跨域请求攻击保护了,这样不是违反abp初衷了吗?我也是没什么好的解决方案

[ValidateAntiForgeryToken]特性是Asp.net mvc自带的用来进行CSRF保护的特性。
Abp对CSRF进行了开箱即用的集成,允许我们不必再为Action设置[ValidateAntiForgeryToken]特性。
代码中[ValidateAntiForgeryToken]特性可能是我用脚手架自动生成的,所以就没有去掉。
添加这个特性[ValidateAntiForgeryToken]也不会关闭CSRF保护吧,毕竟ABP集成的一套CSRF保护机制还是会正常工作的。
具体可参考:
https://github.com/ABPFrameWorkGroup/AbpDocument2Chinese/blob/master/Markdown/Abp/6.9CSRF%E5%92%8CXSRF%E4%BF%9D%E6%8A%A4.md

from learningmpaabp.

nishuihanlong avatar nishuihanlong commented on July 19, 2024

thank you,参考你的很多方式

from learningmpaabp.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.