Commit 7293d6c
authored
Fix: Add wildcard support for all Hygraph Studio domains (#8)
* Fix: Add wildcard support for all Hygraph Studio domains
- Update default allowedOrigins to use wildcards (*.hygraph.com, *.hygraph.dev)
- Fixes iframe communication issues with regional Studio domains
- Supports custom Hygraph Studio deployments out of the box
- Adds localhost:* wildcard for flexible local development
This resolves the issue where the SDK would reject postMessage events
from Studio instances running on regional or custom domains, causing
the preview integration to fail silently.
* Bump version to 1.0.41 parent 0844b5b commit 7293d6c
3 files changed
Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
41 | 45 | | |
42 | 46 | | |
43 | 47 | | |
| |||
0 commit comments