Commit eda6565
committed
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.1 parent 0844b5b commit eda6565
1 file changed
Lines changed: 5 additions & 1 deletion
| 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