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

Modify getObject CORP header to use cross-origin policy #242

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Conversation

jujaga
Copy link
Member

@jujaga jujaga commented Jan 15, 2024

Description

There are use cases where COMS is being used as a way to directly reference and embed content into a 3rd-party webpage. The default helmet CORP policy of same-origin was too restrictive for this specific endpoint.

https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3509

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

There are use cases where COMS is being used as a way to directly
reference and embed content into a 3rd-party webpage. The default helmet
CORP policy of same-origin was too restrictive for this specific endpoint.

Signed-off-by: Jeremy Ho <jujaga@gmail.com>
@jujaga jujaga added the bug Something isn't working label Jan 15, 2024
@jujaga jujaga self-assigned this Jan 15, 2024
Copy link

Coverage Report

Totals Coverage
Statements: 59.6% ( 2802 / 4701 )
Methods: 50% ( 319 / 638 )
Lines: 66.34% ( 1685 / 2540 )
Branches: 52.4% ( 798 / 1523 )

Copy link

codeclimate bot commented Jan 15, 2024

Code Climate has analyzed commit dc254b9 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 66.3% (0.0% change).

View more on Code Climate.

@TimCsaky TimCsaky merged commit 0f15e7a into master Jan 15, 2024
16 checks passed
@jujaga jujaga deleted the sec/corp branch January 15, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants