mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 17:18:23 +00:00
docs: Mention CORS requirement in preflight script docs (#6253)
This commit is contained in:
parent
8483bd506f
commit
b90996f56e
1 changed files with 8 additions and 0 deletions
|
|
@ -112,3 +112,11 @@ curly braces, for example:
|
|||
This will replace `{{access_token}}` with the value of the `access_token` environment variable.
|
||||
|
||||
<Screenshot></Screenshot>
|
||||
|
||||
## CORS
|
||||
|
||||
<Callout type="warning">
|
||||
**Note**: Preflight scripts are ran inside an iframe and due to how browsers have implemented this
|
||||
feature, the "Origin" header will be `"null"`. If you encounter a CORS error, try whitelisting the
|
||||
origin `"null"`. This is not recommended for production environments.
|
||||
</Callout>
|
||||
|
|
|
|||
Loading…
Reference in a new issue