devyash786 opened a new issue, #33035:
URL: https://github.com/apache/superset/issues/33035

   ### Bug description
   
   WARNING:superset.views.error_handling:Refresh CSRF token error
   Traceback (most recent call last):
     File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1482, in 
full_dispatch_request
       rv = self.preprocess_request()
     File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1974, in 
preprocess_request
       rv = self.ensure_sync(before_func)()
     File "/usr/local/lib/python3.10/site-packages/flask_wtf/csrf.py", line 
229, in csrf_protect
       self.protect()
     File "/usr/local/lib/python3.10/site-packages/flask_wtf/csrf.py", line 
273, in protect
       self._error_response("The referrer does not match the host.")
     File "/usr/local/lib/python3.10/site-packages/flask_wtf/csrf.py", line 
307, in _error_response
       raise CSRFError(reason)
   flask_wtf.csrf.CSRFError: 400 Bad Request: The referrer does not match the 
host.
   WARNING:superset.views.error_handling:HTTPException
   Traceback (most recent call last):
     File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1482, in 
full_dispatch_request
       rv = self.preprocess_request()
     File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1974, in 
preprocess_request
       rv = self.ensure_sync(before_func)()
     File "/usr/local/lib/python3.10/site-packages/flask_wtf/csrf.py", line 
229, in csrf_protect
       self.protect()
     File "/usr/local/lib/python3.10/site-packages/flask_wtf/csrf.py", line 
273, in protect
       self._error_response("The referrer does not match the host.")
     File "/usr/local/lib/python3.10/site-packages/flask_wtf/csrf.py", line 
307, in _error_response
       raise CSRFError(reason)
   flask_wtf.csrf.CSRFError: 400 Bad Request: The referrer does not match the 
host.
   
   
   My superset is hosted on xyz domain and my react app is hosted in abc 
domain...
   I am trying to get the guest token to embedd the Dashboard.
   But getting  The CSRF tokens do not match. 
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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]

Reply via email to