Skip to content

chore: separate cors layer for HTTP gateway#65

Merged
r-birkner merged 1 commit intomainfrom
rjb/adapt-cors-headers
Feb 24, 2025
Merged

chore: separate cors layer for HTTP gateway#65
r-birkner merged 1 commit intomainfrom
rjb/adapt-cors-headers

Conversation

@r-birkner
Copy link
Contributor

No description provided.

@r-birkner r-birkner requested a review from a team as a code owner February 24, 2025 08:33
Copy link
Contributor

@nikolay-komarevskiy nikolay-komarevskiy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes are not tested, right? I suppose only this test will fail after the release bump. IMO, it's a good time to introduce e2e tests for the router now to consolidate CORS behavior.

@r-birkner
Copy link
Contributor Author

r-birkner commented Feb 24, 2025

They are not tested here and I don't think it makes sense to test them. It makes sense to test the CORS headers on the API calls, but not on the HTTP gateway requests as there we anyway want to go for "developer-defined" ones. I would merge it as is and then think about testing once we overhaul that part.

@r-birkner r-birkner merged commit 5d5b8e3 into main Feb 24, 2025
3 checks passed
@r-birkner r-birkner deleted the rjb/adapt-cors-headers branch February 24, 2025 14:54
github-merge-queue bot pushed a commit to dfinity/ic that referenced this pull request Feb 27, 2025
…cketIC HTTP gateway (#4154)

This PR reflects ic-gateway
[PR](dfinity/ic-gateway#65) in the PocketIC HTTP
gateway implementation.
github-merge-queue bot pushed a commit to dfinity/ic that referenced this pull request Feb 28, 2025
…cketIC HTTP gateway (#4154)

This PR reflects ic-gateway
[PR](dfinity/ic-gateway#65) in the PocketIC HTTP
gateway implementation.
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