I am trying to write a browser-based app and making a REST call to PAM using JQuery. It seems my request begins first with a pre-flight Options packet before the HTTP Post. This is rejected by PAM with a 401, unauthorized. Is there a way to make this work?
CORS: HTTP access control (CORS) - HTTP | MDN
First packet sent from browser:
OPTIONS /node/rest/CA:00074_CA:00074:01/_ops/Start HTTP/1.1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
Access-Control-Request-Headers: accept, authorization, content-type
Reply from PAM:
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm= Catalyst Realm
Any help or ideas welcome.
Any assistance here for Rick?
We are marking this question as "Assumed Answered" due to age.