encountered header problem when sending ajax request. changed address in index