...
::::
- Used to separate values within {{}}
, used for Between/Not Between and In/Not In list criteria
Gotchas
CORS errors?
If you see an error in the Javascript Console such as:
Code Block |
---|
Access to XMLHttpRequest at 'https://dashboard-host/' from origin 'https://your-app-host/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. |
Then you need to review your frame-ancestors settings (via the config tool or via the config file).
If everything still looks correct, then make sure you’re not using any browser addon that attempts to bypass CORS.
Login screen keeps showing after logging in?
Check your cookie settings
This usually means your cookie settings aren’t set up correctly. Review your cookie settings (via the config tool or via the config file).
Is your dashboard behind a proxy?
If the cookie settings look correct, it might be that your dashboard is being served via http
and the proxy in front of it will be doing the ssl
communication. If that's the case, you'll need to tell the dashboard that it's behind a proxy and that the proxy is doing https
. This is done by editing your proxy settings in one of three ways.
Using the configuration tool
...
Editing the configuration file
Edit dashboard.json
configuration file:
Code Block | ||
---|---|---|
| ||
{
"proxy": {
"enabled": true,
"scheme": "https",
"secure": true,
"host": "proxy-host.com",
"port": 443
}
} |
Using environment variables
Code Block | ||
---|---|---|
| ||
PI_PROXY_ENABLED=true
PI_PROXY_SCHEME=https
PI_PROXY_IS_SECURE=true
PI_PROXY_HOST="proxy-host.com"
PI_PROXY_PORT=443 |
Check the URL being embedded
We’ve noticed the cookie doesn’t get recognised if there’s a double-slash in the URL of the iframe
.
For example: https://dashboard//pi/
or https://dashboard/pi//
instead of https://dashboard/pi/