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

Use service URL from settings to construct welcome page URL #20

Merged
merged 2 commits into from Feb 14, 2017

Conversation

robertknight
Copy link
Member

Use the service URL from the extension's settings to construct the URL
for the '/welcome' page and the URL pattern that allows requests made by
the extension to set cookies for the Hypothesis domain.

Previously both of these were hardcoded to 'https://hypothes.is', an
issue that was noticed when testing deployment of the service to
Skyliner under a different domain.


Manual testing:

  1. Remove the existing unpacked extension (if any) locally
  2. Change the domain for the extension in settings/chrome-prod.json to a different domain (eg. 'https://next.hypothes.is/' - note the empty '/' path here is part of the service URL) and build the extension for production.
  3. Re-add the unpacked extension and verify that after installation, a tab is opened at <service domain>welcome

Use the service URL from the extension's settings to construct the URL
for the '/welcome' page and the URL pattern that allows requests made by
the extension to set cookies for the Hypothesis domain.

Previously both of these were hardcoded to 'https://hypothes.is', an
issue that was noticed when testing deployment of the service to
Skyliner under a different domain.
The first argument is an object mapping dependency names to values, not
an array of arguments as the previous name suggested.
@chdorner chdorner merged commit eb9e4f1 into master Feb 14, 2017
@chdorner chdorner deleted the use-service-url-for-cookie-domain branch February 14, 2017 09:35
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.

None yet

2 participants