Ajax plugin to send header variables

  • yeah as soon as I put something in it seem didnt work.

    At least it appeared so, the forms are not getting passed as regular post or get calls, but instead being passed as OPTIONS. (cos of your header)

    I get this in the BROWSER console in firefox (CTRL SHIFT J)

    Request URL: lennaerthohe.nl/ajaxtest/index.php

    Request Method:      OPTIONS

    Status Code:      HTTP/1.1 200 OK

    Request Headers 17:40:25.000

    User-Agent:     Mozilla/5.0 (Windows NT 6.3; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0

    Pragma:     no-cache

    Origin:     http://localhost:50000

    Host:     lennaerthohe.nl

    DNT:     0

    Connection:     keep-alive

    Cache-Control:     no-cache

    Access-Control-Request-Method:     POST

    Access-Control-Request-Headers:     x-number,x-token,x-usermail

    Accept-Language:     en-gb,en;q=0.5

    Accept-Encoding:     gzip, deflate

    Accept:     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

    Response Headers ?124ms

    X-Powered-By:     PHP/5.4.24

    Vary:     Accept-Encoding

    Transfer-Encoding:     chunked

    Server:     ngx_openresty

    Expires:     Wed, 12 Feb 2014 16:40:42 GMT

    Date:     Wed, 12 Feb 2014 16:40:42 GMT

    Content-Type:     text/html

    Content-Encoding:     gzip

    Connection:     keep-alive

    Cache-Control:     max-age=0

    Access-Control-Allow-Origin:     *

    Seems like they are being set.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)