summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/xhr/resources/reset-token.py
blob: 257c2aae80c690652ef6762b13d1785dcdc94d73 (plain)
1
2
3
4
5
def main(request, response):
    response.headers.set(b"Access-Control-Allow-Origin", request.headers.get(b"origin"))
    token = request.GET[b"token"]
    request.server.stash.put(token, b"")
    response.content = b"PASS"