I am attempting to access v2/payments (sandbox) Api through my web application but keep running into a Cors error after my POST request gets converted to an OPTIONS preflighted request. My site has TLS/HTTP Certification. Right now, my code is set up to make a test payment to my sandbox account of $20.00.
But I get the below error:
My POST request triggers a preflight OPTIONS request. This seems to be where the error initiates. I even think I initiate the OPTIONS headers correctly.
Any help is greatly appreciated as I’ve been stuck for over a week! Thanks!