Skip to content

feat(BOUN-1358): overridable CORS, update deps#75

Merged
blind-oracle merged 12 commits intomainfrom
igornovg/cors
Mar 28, 2025
Merged

feat(BOUN-1358): overridable CORS, update deps#75
blind-oracle merged 12 commits intomainfrom
igornovg/cors

Conversation

@blind-oracle
Copy link
Collaborator

@blind-oracle blind-oracle commented Mar 24, 2025

  • Add CORS cli options
  • Add a custom CORS middleware that inserts various CORS headers only if they're not already present in the response. This middleware is only used with HTTP endpoint, not API & others. Its usage is controlled by CLI flags
  • When CORS middleware is enabled it caches the canister ids with incorrect responses to avoid querying them again for some time
  • Rework some router init (chore)
  • Update the deps.

@blind-oracle blind-oracle requested a review from a team as a code owner March 24, 2025 18:25
blind-oracle and others added 6 commits March 28, 2025 15:13
Co-authored-by: r-birkner <103420898+r-birkner@users.noreply.github.com>
Co-authored-by: r-birkner <103420898+r-birkner@users.noreply.github.com>
Co-authored-by: r-birkner <103420898+r-birkner@users.noreply.github.com>
Co-authored-by: r-birkner <103420898+r-birkner@users.noreply.github.com>
Co-authored-by: r-birkner <103420898+r-birkner@users.noreply.github.com>
@blind-oracle blind-oracle merged commit 424387d into main Mar 28, 2025
5 checks passed
@blind-oracle blind-oracle deleted the igornovg/cors branch March 28, 2025 19:48
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