Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

User migrate and save OPTIONS error

$
0
0

@mario_miora wrote:

Hi, when I try to do the following:

        Ionic.io();

        var ionicUser = Ionic.User.current();

        if (!ionicUser.id) {

            ionicUser.id = user.data.id.toString();
            ionicUser.set('email', user.data.email);
            ionicUser.set('names', user.data.names);
            ionicUser.set('surnames', user.data.surnames);
            ionicUser.set('country', user.data.country_id);
            ionicUser.set('genre', user.data.genre);
            ionicUser.migrate();
            ionicUser.save();
        }

I get the following error (Triggers on ionicUser.save()):

OPTIONS https://api.ionic.io/auth/users/5124/custom t @ ionic.io.bundle.min.js

XMLHttpRequest cannot load https://api.ionic.io/auth/users/5124/custom. Response for preflight has invalid HTTP status code 404

Ionic User: Error: CORS request rejected: https://api.ionic.io/auth/users/5124/custom(…)

So I don't know where the error should come from (I'm trying to migrate from the previous working integration).

Ideas?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>