We have an asp.net website based on 4.5.2 framework. I am trying to integrate the Superset dashboard into one of the .aspx page, but getting following error:
Error: {"errors": [{"message": "400 Bad Request: The referrer does not match the host.", "error_type": "GENERIC_BACKEND_ERROR", "level": "error", "extra": {"issue_codes": [{"code": 1011, "message": "Issue 1011 - Superset encountered an unexpected error."}]}}]}
GUEST_TOKEN_JWT_EXP_SECONDS= 300 # 5 minutes, or you could set it longer
ENABLE_CORS= True
HTTP_HEADERS= {'X-Frame-Options': 'ALLOWALL'}
OVERRIDE_HTTP_HEADERS= {'X-Frame-Options': 'ALLOWALL'}
SUPERSET_FEATURE_EMBEDDED_SUPERSET=True
ALLOW_ORIGINS = ["*"]
CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
"expose_headers": "*",
'resources':['*'],
'origins': ALLOW_ORIGINS
}
ALLOWED_REFERRERS = [
"https://dfeuat.diamondsfactory.com",
"https://superset.nevejewels.org"
]
Can provide extra code, if required.