Skip to content

refactor(preview): remove the metrics cors flag - #174

Open
gwdp wants to merge 2 commits into
gwdp/ss2-socket-auth-docsfrom
gwdp/ss3-drop-metrics-cors-flag
Open

gwdp wants to merge 2 commits into
gwdp/ss2-socket-auth-docsfrom
gwdp/ss3-drop-metrics-cors-flag

Conversation

@gwdp

@gwdp gwdp commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Why

--metrics-cors-origin was the narrow flag: it only opened /metrics. Now that --cors-origin covers every route, the two flags mean the same thing, and the CLI just merges them.
eas-cli will stop passing the old flag once expo/eas-cli#4437 is merged

How

Remove the --metrics-cors-origin CLI flag and metricsCorsOrigins on middleware

Test Plan

CI + confirm EAS no longer send this before merging

@gwdp
gwdp force-pushed the gwdp/ss2-socket-auth-docs branch from 6abe6ae to ee3c2aa Compare September 17, 2026 19:00
@gwdp
gwdp force-pushed the gwdp/ss3-drop-metrics-cors-flag branch from aa60f88 to 78cfc43 Compare September 17, 2026 19:00
@gwdp gwdp changed the title refactor(preview): drop the deprecated metrics cors flag refactor(preview): remove the metrics cors flag Sep 17, 2026
@linear-code

linear-code Bot commented Sep 17, 2026

Copy link
Copy Markdown

ENG-26861

@gwdp
gwdp force-pushed the gwdp/ss2-socket-auth-docs branch from ee3c2aa to d2eede7 Compare September 17, 2026 23:56
@gwdp
gwdp force-pushed the gwdp/ss3-drop-metrics-cors-flag branch 2 times, most recently from 718c042 to 56579b7 Compare September 18, 2026 16:09
@gwdp
gwdp requested a review from hirbod September 18, 2026 17:11
@gwdp
gwdp marked this pull request as ready for review September 18, 2026 17:11
@gwdp
gwdp force-pushed the gwdp/ss2-socket-auth-docs branch from 6d6e458 to cdc3970 Compare September 21, 2026 18:43
@gwdp
gwdp force-pushed the gwdp/ss3-drop-metrics-cors-flag branch from 56579b7 to 1b7b0b5 Compare September 21, 2026 18:43
@gwdp
gwdp force-pushed the gwdp/ss2-socket-auth-docs branch from cdc3970 to 21d0471 Compare September 22, 2026 00:13
@gwdp
gwdp force-pushed the gwdp/ss3-drop-metrics-cors-flag branch from 1b7b0b5 to 60621a3 Compare September 22, 2026 00:13

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant