Has anyone encountered this issue before? Do you know how I can resolve it? I am trying to redirect a user to a webpage from make and I am seeing this error in the console . As a result I am unable to redirect a user to the stripe connect url.
Access to XMLHttpRequest at '
https://connect.stripe.com/setup/e/axyz/xyz
' (redirected from '
https://hook.us1.make.com/xyz
') from origin '
https://xyz.softr.app
' 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.
This is my Make setup and I am using a 302 redirect
and the custom code I am using in softr is
<script>
window.addEventListener('submit-form-success-stripe', (e) => {
const response = e.detail.response || {};
const data = response.data;
if (data && data.redirect) {
window.location.href = data.redirect;
}
});
</script>