update to use same origin