XMLHttpRequest CORS Ad-hoc Testing Page

Client Options

Request Action: GET HEAD POST PUT DELETE TRACE
                          OPTIONS CONNECT PATCH

Use Custom Header 1? Custom Header: Value:
Use Custom Header 2? Custom Header: Value:
Use Custom Header 3? Custom Header: Value:

Body to send:


ID ("0" = random):
Timeout:
Asynchronous?
Include username?
Include username and password?
Bind Event to Upload Object?
withCredentials?
Cookie:

SERVER OPTIONS

Initial Request:

Origin to Send the Request to:

HTTP Status Code to Return:
Content-type to Return:
Access-Control-Max-Age:
Access-Control-Allow-Origin:
Access-Control-Allow-Methods:
Access-Control-Allow-Headers:
Access-Control-Allow-Credentials:
Access-Control-Expose-Headers:
Custom Header:Value for Response:
(To not include one of the above headers, enter "NULL")

Delay on Pre-flight return (ms):
Delay on Response return (ms):

Redirect? (This will add another box)

SETUP

Origin A:
Origin B:
Origin C:
PATH:

Log:
    xhr.status:
    xhr.readyState:
    xhr.statusText:
    xhr.responseType:
    xhr.response:
    xhr.responseXML:
    xhr.withCredentials:

    Response Text:
     

    Response Headers Visible to Script:

    Client Code:

    (For more information, the "xhr" variable can be inspected in the console)
    ReadyState Codes Quick Reference:
    
    UNSENT (numeric value 0)
        The object has been constructed.
    OPENED (numeric value 1)
        The open() method has been successfully invoked. 
        During this state request headers can be set using 
        setRequestHeader() and the request can be made 
        using the send() method.
    HEADERS_RECEIVED (numeric value 2)
        All redirects (if any) have been followed and all 
        HTTP headers of the final response have been received. 
        Several response members of the object are now available.
    LOADING (numeric value 3)
        The response entity body is being received.
    DONE (numeric value 4)
        The data transfer has been completed or something went 
        wrong during the transfer (e.g. infinite redirects).