Get id from the connected user

Ok, when I try to provide the OAuth Token I have this error :

Request header field oauth-token is not allowed by Access-Control-Allow-Headers in preflight response.