Demos - Activate Anti Forgery module for all affected scenarios#32771
Open
mpreyskurantov wants to merge 3 commits intoDevExpress:26_1from
Open
Demos - Activate Anti Forgery module for all affected scenarios#32771mpreyskurantov wants to merge 3 commits intoDevExpress:26_1from
mpreyskurantov wants to merge 3 commits intoDevExpress:26_1from
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR synchronizes demo anti-forgery behavior across jQuery and modular/framework demos by introducing shared override modules and wiring them into all affected demo scenarios.
Changes:
- Add shared anti-forgery override implementations (jQuery + fetch/ajax override).
- Register
anti-forgeryin SystemJS demo configs (Angular/React/ReactJs/Vue). - Activate anti-forgery in affected demos (jQuery
<script>include; frameworkimport 'anti-forgery') and remove per-demo token logic where applicable.
Reviewed changes
Copilot reviewed 87 out of 87 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/demos/shared/anti-forgery/jquery-override.js | New jQuery anti-forgery injection override |
| apps/demos/shared/anti-forgery/fetch-override.js | New fetch/ajax anti-forgery injection override |
| apps/demos/configs/Vue/config.js | Add anti-forgery SystemJS mapping |
| apps/demos/configs/ReactJs/config.js | Add anti-forgery SystemJS mapping |
| apps/demos/configs/React/config.js | Add anti-forgery SystemJS mapping |
| apps/demos/configs/Angular/config.js | Add anti-forgery SystemJS mapping |
| apps/demos/Demos/TreeList/WebAPIService/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/TreeList/WebAPIService/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/TreeList/WebAPIService/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/TreeList/WebAPIService/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/TreeList/WebAPIService/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/Scheduler/WebAPIService/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/Scheduler/WebAPIService/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/Scheduler/WebAPIService/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/Scheduler/WebAPIService/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/Scheduler/WebAPIService/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/Scheduler/SignalRService/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/Scheduler/SignalRService/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/Scheduler/SignalRService/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/Scheduler/SignalRService/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/Scheduler/SignalRService/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/FileUploader/Validation/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/FileUploader/Validation/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/FileUploader/Validation/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/FileUploader/Validation/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/FileUploader/Validation/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/FileUploader/FileUploading/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/FileUploader/FileUploading/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/FileUploader/FileUploading/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/FileUploader/FileUploading/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/FileUploader/FileUploading/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/FileUploader/CustomDropzone/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/FileUploader/CustomDropzone/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/FileUploader/CustomDropzone/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/FileUploader/CustomDropzone/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/FileUploader/CustomDropzone/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/Diagram/WebAPIService/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/Diagram/WebAPIService/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/Diagram/WebAPIService/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/Diagram/WebAPIService/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/Diagram/WebAPIService/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/WebAPIService/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/DataGrid/WebAPIService/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/WebAPIService/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/DataGrid/WebAPIService/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/DataGrid/WebAPIService/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/NewRecordPosition/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/DataGrid/NewRecordPosition/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/NewRecordPosition/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/DataGrid/NewRecordPosition/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/DataGrid/NewRecordPosition/Angular/app/app.service.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/DataValidation/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/DataGrid/DataValidation/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/DataValidation/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/DataGrid/DataValidation/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/DataGrid/DataValidation/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CustomEditors/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/DataGrid/CustomEditors/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CustomEditors/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CustomEditors/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CustomEditors/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CollaborativeEditing/jQuery/index.js | Remove per-demo token logic; update URLs |
| apps/demos/Demos/DataGrid/CollaborativeEditing/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/DataGrid/CollaborativeEditing/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CollaborativeEditing/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CollaborativeEditing/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/DataGrid/CollaborativeEditing/Angular/app/app.service.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/jQuery/index.js | Remove per-demo token logic; rely on shared override |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Vue/App.vue | Remove per-demo token logic; rely on shared override |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/ReactJs/App.js | Remove per-demo token logic; rely on shared override |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/React/App.tsx | Remove per-demo token logic; rely on shared override |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.service.ts | Remove interceptor-based token service |
| apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts | Switch to shared anti-forgery import |
| apps/demos/Demos/CardView/WebAPIService/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/CardView/WebAPIService/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/CardView/WebAPIService/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/CardView/WebAPIService/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/CardView/WebAPIService/Angular/app/app.component.ts | Import anti-forgery module |
| apps/demos/Demos/CardView/DataValidation/jQuery/index.html | Include shared jQuery override script |
| apps/demos/Demos/CardView/DataValidation/Vue/index.ts | Import anti-forgery module |
| apps/demos/Demos/CardView/DataValidation/ReactJs/index.js | Import anti-forgery module |
| apps/demos/Demos/CardView/DataValidation/React/index.tsx | Import anti-forgery module |
| apps/demos/Demos/CardView/DataValidation/Angular/app/app.component.ts | Import anti-forgery module |
apps/demos/Demos/DataGrid/BatchUpdateRequest/Angular/app/app.component.ts
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Synchronize 25_2 -> 26_1
Cherry-picks of (see by commits):