https://github.com/web-platform-tests/wpt
Raw File
Tip revision: bf7cc00ba4855d78175d162308b5c59c6bed197d authored by Andy Paicu on 23 May 2018, 13:12:21 UTC
Prevent sandboxed documents from reusing the default window
Tip revision: bf7cc00
set.py
import helpers

def main(request, response):
    """Respond to `/cookie/set?{cookie}` by echoing `{cookie}` as a `Set-Cookie` header."""
    headers = helpers.setNoCacheAndCORSHeaders(request, response)
    headers.append(("Set-Cookie", request.url_parts.query))
    return headers, '{"success": true}'
back to top