Skip to content

Fix anti-forgery request handling in demos - #35513

Open
GoodDayForSurf wants to merge 3 commits into
DevExpress:mainfrom
GoodDayForSurf:main_fix-anti-forgery
Open

GoodDayForSurf wants to merge 3 commits into
DevExpress:mainfrom
GoodDayForSurf:main_fix-anti-forgery

Conversation

@GoodDayForSurf

Copy link
Copy Markdown
Contributor

No description provided.

@GoodDayForSurf
GoodDayForSurf requested a review from a team October 6, 2026 13:33
@GoodDayForSurf GoodDayForSurf self-assigned this Oct 6, 2026
Copilot AI balanced review requested due to automatic review settings October 6, 2026 13:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Anti-forgery token retrieval failures leave the returned request pending indefinitely.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates the demos’ anti-forgery request wrapper to preserve the original request’s resolution or rejection state and arguments.

Changes:

  • Removes duplicate resolution logic.
  • Forwards successful and failed request results to the wrapper deferred.
File Description
apps/​demos/​shared/​anti-forgery/​fetch-override.js Forwards the original AJAX request outcome through the anti-forgery wrapper.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/demos/shared/anti-forgery/fetch-override.js
Copilot AI balanced review requested due to automatic review settings October 6, 2026 13:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused change correctly mirrors the original request’s resolution or rejection without introducing unresolved issues.

Review effort: Balanced
Findings: None

Resolved since last review (1)

Copilot AI balanced review requested due to automatic review settings October 7, 2026 07:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused change correctly preserves the underlying request’s resolve/reject behavior.

Review effort: Balanced
Findings: None

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants