Skip to content

starknet_transaction_prover: cover the CORS layer attachment in start_server - #15036

Draft
avi-starkware wants to merge 1 commit into
avi/privacy/rpc-impl-overload-testsfrom
avi/privacy/server-cors-wiring-test
Draft

starknet_transaction_prover: cover the CORS layer attachment in start_server#15036
avi-starkware wants to merge 1 commit into
avi/privacy/rpc-impl-overload-testsfrom
avi/privacy/server-cors-wiring-test

Conversation

@avi-starkware

Copy link
Copy Markdown
Collaborator

start_server takes cors_layer as an Option and threads it into the
middleware stack, but no test drove that argument: dropping it would
have disabled CORS on a configured deployment with the suite still
green.

Adds the positive case and its mirror (no layer configured, no header),
so neither can pass on a response that carries the header
unconditionally.

@reviewable-StarkWare

Copy link
Copy Markdown

This change is Reviewable

…_server

start_server takes cors_layer as an Option and threads it into the
middleware stack, but no test drove that argument: dropping it would
have disabled CORS on a configured deployment with the suite still
green.

Adds the positive case and its mirror (no layer configured, no header),
so neither can pass on a response that carries the header
unconditionally.
@avi-starkware
avi-starkware force-pushed the avi/privacy/server-cors-wiring-test branch from 971cbc1 to 8a0ec9f Compare August 26, 2026 05:50
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