Hi,
it seems that you can't really call the REST API without sending the access_token as a query param, because the Authorization Header is not send during the OPTION preflight.
Example will better explain. 1/ you can the REST API through an Ajax call, and you plan to pass the access_token through the Authorization header (Authorization: Bearer mytoken). 2/ You brower does a preflight OPTION call WITHOUT that header (since it's asking CORS if that header is allowed) 3/ Clover API answer with a 401, because access token is missing.
No other choice than to pass access token as a query param.
Has anyone been able to work only with the Authorization header ?
Thanks people