It should not work even in local testing. Can you please enable debug logs and check if it is really working.