Cors policy

https://tradetimeshop.rf.gd/server/public/payment.html
on the checkout button at the buttom I get this error in the console.
Access to fetch at ‘https://errors.infinityfree.net/errors/404/’ (redirected from ‘https://tradetimeshop.rf.gd/create-checkout-session’) from origin ‘https://tradetimeshop.rf.gd’ 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. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
How can I make it work?

https://tradetimeshop.rf.gd/create-checkout-session

doesn’t exist and that’s why you get 404 (during POST)

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.