I'm trying to logout an user using the API, but the Preflight check of the request is failing with 404.
Here are the request details
OPTIONS https://api.us.onelogin.com/api/1/users/------/logout HTTP/1.1
Host: api.us.onelogin.com
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Access-Control-Request-Method: PUT
Origin: ---
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Access-Control-Request-Headers: authorization,content-type
Accept: */*
Referer: ---
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
And this is the response:
HTTP/1.1 404 Not Found
Date: Fri, 18 Jan 2019 19:06:13 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 0
Connection: keep-alive
Status: 404 Not Found
Is OPTIONS not enabled as a valid request on the API? Any suggestions?
Thanks!