Skip to content

Commit

Permalink
fix(embedded): add missing GUEST_TOKEN_HEADER_NAME to bootstrap data (#…
Browse files Browse the repository at this point in the history
…28932)

(cherry picked from commit 5c9a794)
  • Loading branch information
hexcafe authored and michael-s-molina committed Jun 13, 2024
1 parent a608917 commit 449be5d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion superset/embedded/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import json
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
Expand Down Expand Up @@ -78,6 +78,9 @@ def embedded(
)

bootstrap_data = {
"config": {
"GUEST_TOKEN_HEADER_NAME": current_app.config["GUEST_TOKEN_HEADER_NAME"]
},
"common": common_bootstrap_payload(),
"embedded": {
"dashboard_id": embedded.dashboard_id,
Expand Down

0 comments on commit 449be5d

Please sign in to comment.