#Cors issue

1 messages · Page 1 of 1 (latest)

midnight mauve
#

please i wanted to ask if dodopayments rejects request from domains that are not registered under brands ? i am getting a cors error while testing my payment integration although i am not facing this issue locally.

something like this
upgrade:1 Access to fetch at 'https://beamcut.pro/api/checkout/subscription?productId=pdt_HIh7yhlvhxTDgQDlNlfcr' from origin 'https://www.beamcut.pro' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

molten flint
#

Hey @midnight mauve could you expand on this?
Where does dodo payments come into play in this error? I am lacking context here.

midnight mauve
#

I have two brands under my business, the second is still under review though but I have integrated payments and I am making requests to the subscription api though the domain of my second brand(still under review) but the request is getting blocked “Cors error”. Reason why I am asking is because the one time payment api works regardless, so subscription api block request from domains that are not approved yet?

#

@molten flint

molten flint
#

You cant call any API in live mode without approval.

Please share code

molten flint
#

Please share the code implementation of yours where you have integrated dodo payments.
Also please include the code part from which you are getting the error. Such as a specific API call to your backend etc.

midnight mauve
#

I think it is because the brand is still under review.

midnight mauve
#

@molten flint