Skip to content

Add Origin header to LocalContexts API calls #11643

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

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Jul 16, 2025

What this PR does / why we need it: Dataverse currently has functionality to make calls the the localcontextshub server to support connects between Dataverse datasets and LC projects (see https://github.com/gdcc/dataverse-external-vocab-support/tree/main/packages/local_contexts). Per LC request (email between @qqmyers and Ashley R at LC), this PR adds the Dataverse instance URL as an Origin header on such requests. The intent is to support LC in restricting the use of specific API keys to specific Dataverse instances.

Which issue(s) this PR closes:

  • Closes #

Special notes for your reviewer:

Suggestions on how to test this: Coordinate with LC to verify the header is sent when tested against their sandbox.localcontextshub.org server. (The code on their end is still in development and expected in the next few months.)

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@coveralls
Copy link

Coverage Status

coverage: 23.18% (-0.002%) from 23.182%
when pulling ee70c66 on GlobalDataverseCommunityConsortium:TKLabels
into 74b3bc7 on IQSS:develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants