Эх сурвалжийг харах

HUE-5135 [metadata] Prevent CSRF error when calling the search API

Romain Rigaux 9 жил өмнө
parent
commit
666b4df8cd

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -181,7 +181,7 @@ class NavigatorApi(object):
 
       data = json.dumps(body)
       LOG.info(data)
-      response = self._root.post('interactive/entities?limit=%(limit)s&offset=%(offset)s' % pagination, data=data, contenttype=_JSON_CONTENT_TYPE)
+      response = self._root.post('interactive/entities?limit=%(limit)s&offset=%(offset)s' % pagination, data=data, contenttype=_JSON_CONTENT_TYPE, clear_cookies=True)
 
       return response
     except RestException: