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
{{ message }}
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.
callApi in superset-ui-connection will try to find an existing version of the data in the cache if the window.caches object exists. Unfortunately, as MDN states:
CacheStorage always rejects with a SecurityError on untrusted origins (i.e. those that aren't using HTTPS [...])
At that point, the CacheStorage API throws and the request for the CSRF token as well as the real request are never made.
I believe the correct solution to this problem would probably be to change the constant CACHE_AVAILABLE in superset-ui-connection/src/constants.ts to something like:
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!
When the page is served over an insecure connection, some browsers (Firefox) will disable the
CacheStorage API for security reasons and will throw an error when an attempt is made to use it.
Thus, do not even attempt to use CacheStorage on such connections in the first place.
fixapache-superset#193
When the page is served over an insecure connection, some browsers (Firefox) will disable the
CacheStorage API for security reasons and will throw an error when an attempt is made to use it.
Thus, do not even attempt to use CacheStorage on such connections in the first place.
fix#193
Describe the bug
See apache/superset#7364. Essentially:
callApi
in superset-ui-connection will try to find an existing version of the data in the cache if thewindow.caches
object exists. Unfortunately, as MDN states:At that point, the CacheStorage API throws and the request for the CSRF token as well as the real request are never made.
I believe the correct solution to this problem would probably be to change the constant
CACHE_AVAILABLE
in superset-ui-connection/src/constants.ts to something like:To Reproduce
Steps to reproduce the behavior:
Expected behavior
Fetches should be executed
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: