Skip to content

Commit 5c5124e

Browse files
committed
Release updates
1 parent 4e57de4 commit 5c5124e

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,11 @@ Create one or more private CORS proxies. See the
2929
[blog post](https://www.docusign.com/blog/dsdev-building-single-page-applications-with-docusign-and-cors-part-2).
3030
For nginx, see the [CORS proxy configuration file](https://github.com/docusign/blog-create-a-CORS-gateway/blob/master/nginx_site_file).
3131

32-
You will add the proxy address to the config.js file (see below).
32+
You will add the proxy address or addresses to
33+
the config.js file (see below).
3334

34-
Ask your DocuSign support contact to add your company
35+
If you'd like to use CORS in production,
36+
ask your DocuSign support contact to add your company
3537
name to PORTFOLIO-1100. This will help raise the prioritization
3638
of adding CORS to the eSignature API.
3739

@@ -40,6 +42,12 @@ Copy the file `public/config_example.js` to `public/config.js` and fill in the s
4042

4143
The config.js file should not be stored with the repository.
4244

45+
## Pull Requests and Questions
46+
Pull requests (PRs) are welcomed, all PRs must use the MIT license.
47+
48+
If you have questions about this code example, please
49+
ask on StackOverflow, using the `docusignapi` tag.
50+
4351
# Getting Started with Create React App
4452
(The following is the default Readme for apps built with the Create React App utility.)
4553

src/OAuthImplicit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class OAuthImplicit {
4747
if (!accessTokenFound) {return} // EARLY RETURN
4848

4949
// Avoiding an injection attack: check that the hash only includes expected characters
50-
// An example: #access_token=eyJ0eXAiOiJNVCIsImFsZyI6IlJTMjU2Iiwia2lkIjoiNjgxODVmZjEtNGU1MS00Y2U5LWFmMWMtNjg5ODEyMjAzMzE3In0.AQkAAAABAAUABwCA5xeRWULXSAgAgCc7n5xC10gCAHR-9s2Nn_hNv77uMjz2XvIVAAEAAAAYAAEAAAAFAAAADQAkAAAAN2ZiMmFhYmUtYjI3NC00MDQzLWIyYTItY2M1NDg0MGRmMzJkMACA5xeRWULXSBIAAQAAAAsAAABpbnRlcmFjdGl2ZQ.eUVqrmf4wZ8EQRqNPDI2AumqbNVrxlxCD0uq8YCWNDAvC1lAakTdInXUBLMMsjN-NxXChP7UX8VF870-kSsiR9izXj55-YjTHveCyEdJ-V9iSotZpHLZ58Y2ScGF4mreBmZqFX2jVed43NY71b-qAlghTP7VfMulP0KnpYwLWLllNSB-OIlg68tsVhbhiUayC5fLHRv0mm1lB9LCjf5GzeP3TJLTkQ5NiAqEmEGqdmo4r8BkRxxW4X1hBHq2iD3E2cMugdOpMFamUFRw3vHCHdDiJxYMy6RO8ogtpE98n915hj4jTc2wbtRnJqwiDA90mo-eq4pL5uzw1wKVQLqF6A&expires_in=28800&token_type=bearer&state=e3f287fbe932b904a660282242bfc58bd6a67fe2
50+
// An example: #access_token=eyJ0eXA...[Access tokens can be 610 characters or longer]...wKVQLqF6A&expires_in=28800&token_type=bearer&state=e3f287fbe93...c58bd6a67fe2
5151
// No characters other than #.-&=_ a-z A-Z 0-9 (no spaces)
5252
const hashRegex = /[^#.\-&=_a-zA-Z0-9]/;
5353
if (hash.search(hashRegex) !== -1) {

0 commit comments

Comments
 (0)