Comments (2)
我看到你的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.
thank you,参考你的很多方式
from learningmpaabp.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learningmpaabp.