You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the "Missing Authorization Header" issue when accessing the /api/v1/security/csrf_token endpoint in Superset, you need to include the appropriate Authorization header in your request. The Authorization header typically requires a Bearer token, which you can obtain through the authentication process.
Here's an example of how you might modify your request to include the Authorization header:
response = requests.get(
"https://report.databank.mn/api/v1/security/csrf_token",
headers={
'Content-type': 'application/json',
'Authorization': 'Bearer {}'.format(access_token) # Ensure access_token is correctly set
}
)
Make sure that access_token is a valid token obtained from your authentication provider. If you haven't obtained an access token yet, you'll need to authenticate first to get one.
Bug description
return msg': 'Missing Authorization Header'
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: