fix(embedded): add missing GUEST_TOKEN_HEADER_NAME to bootstrap data (#28932)

This commit is contained in:
Hex Café 2024-06-06 09:58:38 +08:00 committed by GitHub
parent 8f02eb0a34
commit 5c9a79442c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -16,7 +16,7 @@
# under the License.
from typing import Callable
from flask import abort, request
from flask import abort, current_app, request
from flask_appbuilder import expose
from flask_login import AnonymousUserMixin, login_user
from flask_wtf.csrf import same_origin
@ -77,6 +77,9 @@ class EmbeddedView(BaseSupersetView):
)
bootstrap_data = {
"config": {
"GUEST_TOKEN_HEADER_NAME": current_app.config["GUEST_TOKEN_HEADER_NAME"]
},
"common": common_bootstrap_payload(),
"embedded": {
"dashboard_id": embedded.dashboard_id,