Update API to allow requests from javascript in a browser