Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added primitive CORS header support #1885

Merged
merged 5 commits into from Oct 15, 2021
Merged

Added primitive CORS header support #1885

merged 5 commits into from Oct 15, 2021

Conversation

sandervankasteel
Copy link
Contributor

@sandervankasteel sandervankasteel commented Oct 6, 2021

Context:
This code is based on the PR of frecristovao (#1010).

In the initial PR, I saw that the code was never resubmitted after Transmission's moving away from Gitflow.

Code:

In my eyes, it made sense that setting any CORS headers would happen after authorization checks of the client's IP address and the anti-brute force check. If I need to move the setting of the headers, please let me know and I will resolve that.

libtransmission/rpc-server.cc Outdated Show resolved Hide resolved
Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

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

nullptr check

@sandervankasteel
Copy link
Contributor Author

@ckerr I've added the nullptr check 😄

@ckerr ckerr merged commit d11ccf1 into transmission:master Oct 15, 2021
@ckerr
Copy link
Member

ckerr commented Oct 15, 2021

Thanks!

@ckerr ckerr added type:feat A new feature scope:core labels Oct 15, 2021
@sandervankasteel
Copy link
Contributor Author

You are welcome! 👍 @ckerr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants