I want to retrieve the user information (like email, DoB, ... etc.) and in the component I did this:
 const instance = axios.create({
            timeout: 1000,
            headers: {
            "content-type": "application/json",
            "APPLICATION_ID": "XXXXX",
            "CLIENT_KEY": "XXXXX",
            "token": "Token"
            }
        });
        instance.get("url/" + app.id)
        .then(function(response) {
            console.log("I am here!");
            app.phone = response.data.result._User.phone;
            app.email = response.data.result._User.email;
            app.dob = response.data.result._User.dob;
            app.website = response.data.result._User.website;
            app.country = response.data.result._User.ountry;
        })
        .catch(function(error) {
            console.log("Error!");
        });
but it is always providing this error message:
Failed to load https:url/XXXXXX: Request header field token is not allowed by Access-Control-Allow-Headers in preflight response.
How can I fix this problem?
In addition, print in console Error!
