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

feat: custom uri scheme and resource domain #1

Merged
merged 2 commits into from Mar 6, 2024

Conversation

awood314
Copy link

@awood314 awood314 commented Mar 5, 2024

Adds two string options that can override the choc defaults:

  • [Mac Only] customUriScheme: for the URI scheme handler (default: choc://)
  • customResourceDomain: the base URL for the resource fetching (default: choc.choc on Mac and choc.localhost on Windows)

This change is because we want to relax our CORS restrictions in our back-end services, but still be deliberate about the origins we allow.

@nick-thompson
Copy link
Collaborator

LGTM! Worth trying to upstream these changes?

@awood314 awood314 merged commit 3c23805 into main Mar 6, 2024
@awood314 awood314 deleted the alexwood/custom-uri-origin branch March 6, 2024 16:44
@awood314 awood314 restored the alexwood/custom-uri-origin branch March 12, 2024 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants