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

OrgMiddleware should prevent cross-org POSTs #5618

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Nov 6, 2024

A POST can include the X-Temba-Org header which will be checked against the resolved org and the request rejected if it doesn't match. Avoids scenarios where you have a form open on one tab but change orgs on other tab.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (76d0c2d) to head (a184d7d).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #5618   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          563       563           
  Lines        25792     25797    +5     
=========================================
+ Hits         25792     25797    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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