Skip to content

Harden authenticated API same-origin defaults#26

Merged
sidhujag merged 1 commit intomasterfrom
hardening/same-origin-auth
Apr 25, 2026
Merged

Harden authenticated API same-origin defaults#26
sidhujag merged 1 commit intomasterfrom
hardening/same-origin-auth

Conversation

@sidhujag
Copy link
Copy Markdown
Member

Summary

  • Default production authenticated API calls to same-origin relative paths.
  • Document the required same-origin /auth, /vault, and /gov reverse-proxy deployment.
  • Add tests for authenticated API base URL resolution.

Test plan

  • CI=true npm test -- --watch=false --runInBand src/lib/apiClient.test.js

Made with Cursor

Use same-origin relative authenticated API paths in production so CSRF and host-only session cookies match the intended reverse-proxy deployment.

Made-with: Cursor
@sidhujag
Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag sidhujag merged commit bb90485 into master Apr 25, 2026
4 checks passed
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