return json response even if referer header is present