MCPcopy Create free account
hub / github.com/bugy/script-server / get_xsrf_token

Method get_xsrf_token

src/tests/web/server_test.py:259–261  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

257
258 @staticmethod
259 def get_xsrf_token(session):
260 response = session.get('http://127.0.0.1:12345/admin/scripts')
261 return response.cookies.get('_xsrf')
262
263 def request(self, method, url, session=None, auth=None):
264 if session is None:

Callers 2

Calls 1

getMethod · 0.45

Tested by

no test coverage detected