This might be due to vagrant’s port forwarding. Your site believes its host is :4000 when in fact it’s :3000. When I test locally I am not using such port forwarding and it works correctly.
Perhaps try the force hostname site setting with :3000? That might correct the issue.