Repository navigation
Commit 9720f12
authored
fix: drop hardcoded host from HttpAgent options in example frontends (#1488)
@icp-sdk/core resolves the API host from the page: the page origin on
localhost, ic0.app and icp0.io, and https://icp-api.io elsewhere. A
hardcoded window.location.origin breaks frontends served from a custom
domain, which does not serve /api.
qrcode and image-classification extend connect-src, since calls now leave
the page origin (localhost:8000 locally, icp-api.io on icp.net).1 parent f31435d commit 9720f12
37 files changed
Lines changed: 5 additions & 41 deletions
File tree
- motoko
- cert-var/frontend/src
- daily_planner/frontend/src
- evm_block_explorer/frontend/src
- filevault/frontend/src
- flying_ninja/frontend/src
- hello_world/frontend/src
- ic-pos/frontend/src
- lib
- llm_chatbot/frontend/src
- random_maze/frontend/src
- superheroes/frontend/src
- vetkeys
- basic_bls_signing/frontend/src
- basic_ibe/frontend/src
- basic_vetkd/frontend/src
- encrypted_notes_app_vetkd/frontend/src/lib
- password_manager_with_metadata/frontend/src/lib
- password_manager/frontend/src/lib
- who_am_i/src/frontend/src
- rust
- daily_planner/frontend/src
- evm_block_explorer/frontend/src
- face-recognition/frontend/src
- flying_ninja/frontend/src
- hello_world/frontend/src
- image-classification/frontend
- public
- src
- llm_chatbot/frontend/src
- photo_gallery/frontend/src
- qrcode/frontend
- public
- src
- vetkeys
- basic_bls_signing/frontend/src
- basic_ibe/frontend/src
- basic_timelock_ibe/frontend/src
- basic_vetkd/frontend/src
- encrypted_notes_app_vetkd/frontend/src/lib
- password_manager_with_metadata/frontend/src/lib
- password_manager/frontend/src/lib
- who_am_i/src/frontend/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
| 37 | + | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
0 commit comments