Skip to content

Commit

Permalink
Update readme with local URLs (#2147)
Browse files Browse the repository at this point in the history
* Update readme with local URLs

The recent refactoring with multiple JS bundles has lead
to II breaking in Chrome, when the canister id is supplied as
an URL parameter.
There is no easy or nice solution, so for now we just advise
developers to use a different URL scheme when using anything but
Safari.

* Fix typos and mention dapp configuration

* Fix formatting
  • Loading branch information
Frederik Rothenberger authored Dec 18, 2023
1 parent 801411f commit e58865d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Use the Internet Identity canister in your local dfx project by adding the follo
}
}
```
To deploy, run `dfx deploy`.

To access Internet Identity or configure it for your dapp, use one of the following URLs:
* Chrome, Firefox: `http://<canister_id>.localhost:4943`
* Safari: `http://localhost:4943?canisterId=<canister_id>`

### Architecture Overview

Expand Down
5 changes: 4 additions & 1 deletion demos/using-dev-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ You might get different canister IDs (and that's totally fine). If the `webapp`

![](./webapp.png)

_If you actually use the webapp, make sure that the "Internet Identity URL" field points to `http://localhost:4943/?canisterId=<canister ID of the internet_identity canister>`._
_If you actually use the webapp, make sure that the "Internet Identity URL" field points to one of these URLS_:

- Chrome, Firefox: `http://<canister ID of the internet_identity canister>.localhost:4943/`.
- Safari: `http://localhost:4943/?canisterId=<canister ID of the internet_identity canister>`.

## Helpers

Expand Down

0 comments on commit e58865d

Please sign in to comment.