Skip to content

Send Authorization header on Scratch project save#1423

Open
abcampo-iry wants to merge 1 commit intomainfrom
issues/1256-missing-bits-for-using-headers-in-ui
Open

Send Authorization header on Scratch project save#1423
abcampo-iry wants to merge 1 commit intomainfrom
issues/1256-missing-bits-for-using-headers-in-ui

Conversation

@abcampo-iry
Copy link
Copy Markdown
Contributor

@abcampo-iry abcampo-iry commented Apr 8, 2026

Contributes to close: https://github.com/RaspberryPiFoundation/digital-editor-issues/issues/1256

Scratch project loads already use scratchFetch metadata,
but saves were still going through scratch-gui's default xhr path, so PUT/POST requests lost the Authorization header after the cookie auth removal.

Override the Scratch save path in editor-ui to use scratchFetch for create/update requests, preserving the existing request shape while applying the auth metadata on save/remix as well.

@abcampo-iry abcampo-iry temporarily deployed to previews/1423/merge April 8, 2026 16:30 — with GitHub Actions Inactive
@abcampo-iry abcampo-iry force-pushed the issues/1256-missing-bits-for-using-headers-in-ui branch from 5379075 to 7c06922 Compare April 8, 2026 16:33
@abcampo-iry abcampo-iry temporarily deployed to previews/1423/merge April 8, 2026 16:33 — with GitHub Actions Inactive
@abcampo-iry abcampo-iry force-pushed the issues/1256-missing-bits-for-using-headers-in-ui branch from 7c06922 to bec51a0 Compare April 8, 2026 16:33
@abcampo-iry abcampo-iry temporarily deployed to previews/1423/merge April 8, 2026 16:33 — with GitHub Actions Inactive
@abcampo-iry abcampo-iry marked this pull request as ready for review April 8, 2026 17:37
Copilot AI review requested due to automatic review settings April 8, 2026 17:37
Copy link
Copy Markdown
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.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jamiebenstead jamiebenstead requested a review from zetter-rpf April 9, 2026 08:47
@abcampo-iry abcampo-iry force-pushed the issues/1256-missing-bits-for-using-headers-in-ui branch from bec51a0 to ea95998 Compare April 9, 2026 10:11
@abcampo-iry abcampo-iry temporarily deployed to previews/1423/merge April 9, 2026 10:12 — with GitHub Actions Inactive
@abcampo-iry abcampo-iry force-pushed the issues/1256-missing-bits-for-using-headers-in-ui branch from ea95998 to aa2891b Compare April 9, 2026 13:45
@abcampo-iry abcampo-iry temporarily deployed to previews/1423/merge April 9, 2026 13:45 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants