question

rdy102 avatar image
rdy102 asked parquet76 answered

token-sandbox.dev.clover.com/v1/tokens not working ? CORS fetch error

Hi,

I have a problem with generating clv token (Iframe implementation). It was all working well yesterday, however today it was not working at all. I got a bunch of errors - please see below. Moreover, endpoint on docs returned Internal Server Error (https://docs.clover.com/reference/createtoken).

Could you please advise?


Thanks.




Access to fetch at 'https://token-sandbox.dev.clover.com/v1/tokens' from origin 'https://checkout.sandbox.dev.clover.com' has been blocked by CORS policy: 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.

card-cvv_11.entry.js:9 POST https://token-sandbox.dev.clover.com/v1/tokens net::ERR_FAILED 500

onGetFieldData @ card-cvv_11.entry.js:9

postMessageHandler @ card-cvv_11.entry.js:9

(anonymous) @ index-c710fdb9.js:1

postMessage (async)

sendMessage @ card-cvv_11.entry.js:1

sendMessageToChildren @ card-cvv_11.entry.js:1

getFieldData @ card-cvv_11.entry.js:1

postMessageHandler @ card-cvv_11.entry.js:1

(anonymous) @ index-c710fdb9.js:1

postMessage (async)

sendMessage @ card-cvv_11.entry.js:1

sendMessageToChildren @ card-cvv_11.entry.js:1

getCardFieldValues @ card-cvv_11.entry.js:9

postTokenRequest @ card-cvv_11.entry.js:9

postMessageHandler @ card-cvv_11.entry.js:9

(anonymous) @ index-c710fdb9.js:1

card-cvv_11.entry.js:9 TypeError: Failed to fetch

at MessageElement.onGetFieldData (card-cvv_11.entry.js:9:94897)

at MessageElement.postMessageHandler (card-cvv_11.entry.js:9:91931)

at index-c710fdb9.js:1:5816




REST APIPaymentse-commerce apiecommerce
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

tagline avatar image tagline commented ·
Have you found the solution?
0 Likes 0 ·

1 Answer

·
parquet76 avatar image
parquet76 answered
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community