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
  • Loading branch information
hexcafe authored Jun 6, 2024
1 parent 8f02eb0 commit 5c9a794
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 @@ -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
Expand Down Expand Up @@ -77,6 +77,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 5c9a794

Please sign in to comment.