Skip to content

Demos - Activate Anti Forgery module for all affected scenarios#32771

Open
mpreyskurantov wants to merge 3 commits intoDevExpress:26_1from
mpreyskurantov:26_1-anti-forgery-agg
Open

Demos - Activate Anti Forgery module for all affected scenarios#32771
mpreyskurantov wants to merge 3 commits intoDevExpress:26_1from
mpreyskurantov:26_1-anti-forgery-agg

Conversation

@mpreyskurantov
Copy link
Contributor

@mpreyskurantov mpreyskurantov self-assigned this Mar 3, 2026
Copilot AI review requested due to automatic review settings March 3, 2026 14:27
@mpreyskurantov mpreyskurantov requested review from a team as code owners March 3, 2026 14:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-forgery in SystemJS demo configs (Angular/React/ReactJs/Vue).
  • Activate anti-forgery in affected demos (jQuery <script> include; framework import '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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants