We are experiencing the following problem:
- create payment is ok
- webhook gets called (in this case only when the payment expires)
- The redirect to the Mollie checkout fails (CORS)
in PHP: header("Location: " . $payment->getCheckoutUrl(), true, 303);
- The browser responds with:
Access to XMLHttpRequest at 'https://www.mollie.com/checkout/select-method/HRSYvFuVBa' (redirected from 'https://bellohwriting.com/index7VWiw_75uQR.php') from origin 'https://bellohwriting.com' 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.
GET https://www.mollie.com/checkout/select-method/HRSYvFuVBa net::ERR_FAILED
Can someone please help 🙂