IvanHernanzC opened a new issue, #24472:
URL: https://github.com/apache/superset/issues/24472
When I am embedding a dashboard on my website, I see how it authenticates,
it returns the token and when I go to call api/v1/security/guest_token it gives
me the 405 error. In a system via http it works perfectly for me
#### How to reproduce the bug
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
### Expected results
what you expected to happen.
### Actual results
what actually happens.
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
(please complete the following information):
- browser type and version: firefox 114.01
- superset version: 0.0.0-dev` docker compose
- python version3.9.16
- node.js version: `node -v`
- any feature flags active:
FEATURE_FLAGS = {
'ENABLE_TEMPLATE_PROCESSING': True,
"EMBEDDED_SUPERSET": True
}
SESSION_COOKIE_SAMESITE = "None" # Sufficient for Firefox
SESSION_COOKIE_SECURE = True # Required for Google Chrome (at least from
version 84)
SESSION_COOKIE_HTTPONLY = False
CSRF_ENABLED = False
WTF_CSRF_ENABLED = False
GUEST_ROLE_NAME = "Gamma"
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included
it here as text if there are any.
Python log:
2023-06-21 16:05:50,313 [DEBUG] urllib3.connectionpool
[connectionpool.py:connectionpool:_make_request:456]: https://xxxxxx.com:443
"POST /api/v1/security/guest_token HTTP/1.1" 308 289
2023-06-21 16:05:50,314 [DEBUG] urllib3.connectionpool
[connectionpool.py:connectionpool:_new_conn:228]: Starting new HTTP connection
(1): xxxxxx.com:80
2023-06-21 16:05:50,317 [DEBUG] urllib3.connectionpool
[connectionpool.py:connectionpool:_make_request:456]: http://xxxxx.com:80 "POST
/api/v1/security/guest_token/ HTTP/1.1" 301 169
2023-06-21 16:05:50,322 [DEBUG] urllib3.connectionpool
[connectionpool.py:connectionpool:_make_request:456]: https://xxxx.com:443 "GET
/api/v1/security/guest_token/ HTTP/1.1" 405 271
2023-06-21 16:05:50,325 [INFO] root [api.py:api:get:828]: {'errors':
[{'message': '405 Method Not Allowed: The method is not allowed for the
requested URL.', 'error_type': 'GENERIC_BACKEND_ERROR', 'level': 'error',
'extra': {'issue_codes': [{'code': 1011, 'message': 'Issue 1011 - Superset
encountered an unexpected error.'}]}}]}
### Additional context
Add any other context about the problem here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]