Преглед изворни кода

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

Romain Rigaux пре 9 година
родитељ
комит
666b4df8cd
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 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: