cancel
Showing results for 
Search instead for 
Did you mean: 

Running into CORS Issue in Test environment

We recently started getting an issue while testing AcceptJS in the test environment. We tested with a project that was already in production, which works. When switching the project to test mode, we start getting the below error.

Access to XMLHttpRequest at 'https://apitest.authorize.net/xml/v1/request.api' from origin 'https://jstest.authorize.net' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Looks like https://api2.authorize.net/xml/v1/request.api has the below response headers, so I'm guessing testing of restricting these is in progress, but it's causing development issues for us.

 
access-control-allow-credentials: true
access-control-allow-headers: x-requested-with,cache-control,content-type,origin,method,SOAPAction
access-control-allow-methods: PUT,OPTIONS,POST,GET
access-control-allow-origin: *
 
Daniel-S
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Error is no longer present, resolved.

View solution in original post

Daniel-S
Member
1 REPLY 1

Error is no longer present, resolved.

Daniel-S
Member