Wordpress rest api not closing browser session -
when call rest route, browser session not closed , browser keeps loading. due this, chrome generates err_incomplete_chunked_encoding
error.
here request header:
get /?rest_route=/test/v1/advertiser/logout http/1.1 host: www.domain.com connection: keep-alive cache-control: max-age=0 upgrade-insecure-requests: 1 user-agent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, gecko) chrome/60.0.3112.90 safari/537.36 accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 accept-encoding: gzip, deflate accept-language: en-us,en;q=0.8 cookie: wp-settings-1=librarycontent%3dbrowse%26editor%3dhtml; wp-settings-time-1=1499682179; wordpress_test_cookie=wp+cookie+check; wordpress_logged_in_dc4e3a2222d11ce1c897e40579a199d39=admin%7c1501067732%7cgpntuvy5lddq6edtudg6yzr9g2f222220zrtbesgvtrf9%7c11627a0ad7e00c5d4f0a1b8a822d6ac366da838d7648c3d5c7cf7826eb5eb856 query string parameters view source view url encoded
and here response header:
http/1.1 201 created date: tue, 15 aug 2017 04:48:00 gmt server: apache x-powered-by: php/5.6.30 x-robots-tag: noindex link: <_domain_url_here_/?rest_route=/>; rel="https://api.w.org/" x-content-type-options: nosniff access-control-expose-headers: x-wp-total, x-wp-totalpages access-control-allow-headers: authorization, content-type allow: cache-control: private, must-revalidate expires: thu, 14 sep 2017 04:48:00 gmt connection: close transfer-encoding: chunked content-type: application/json; charset=utf-8
if there else need post here, please let me know.
Comments
Post a Comment