8 lines
258 B
Python
8 lines
258 B
Python
|
req = loadBody("json")
|
||
|
b64challenge = base64.b64encode(challenge).decode()
|
||
|
req['licenseRequest'] = b64challenge
|
||
|
|
||
|
res = await corsFetch(licUrl, "POST", licHeaders, req, "json")
|
||
|
js.document.getElementById('result').value=res
|
||
|
licence = res["result"]["license"]
|