checkout-payment-sample icon indicating copy to clipboard operation
checkout-payment-sample copied to clipboard

[Report Only] Refused to frame

Open odisi opened this issue 3 years ago • 8 comments

[Report Only] Refused to frame 'https://www.mercadopago.com.br/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' *.mercadolibre.com".

?preference-id=773477537-cbe49959-cc33-4927-827f-b63e1f8687bd&from-widget=true:4 GET https://content.mercadopago.com/fp/check.js?org_id=jk96mpy0&session_id=b72090e1-57aa-43db-8976-406fa9d89b71 net::ERR_CERT_DATE_INVALID

It is not possible to complete the test because there are errors.

odisi avatar Jun 11 '21 18:06 odisi

here too, same error

alztec avatar Jun 17 '21 15:06 alztec

Here I change domain to .com.br in url to web-payment-checkout.js and work

image

alztec avatar Jun 17 '21 20:06 alztec

Another issue I was able to fix was the message "You can't pay for yourself" (the message in pt-BR for me was Você não pode pagar para si mesmo.). That was happening because I was logged in with my mercadopago account on the same browser I was testing the app, and apparently we can't make a purchase if we're logged in with the same account we created the setup for the payment.

To fix that I just opened the app on a incognito window, and it worked just fine.

mauriciosoares avatar Aug 03 '21 18:08 mauriciosoares

Hello everybody. It's 2022 and I got the same problem.

I didn't see a solution answer.

Does anyone know what happened to this problem?

agds23 avatar Jul 03 '22 21:07 agds23

@agds23 Did you find a solution?

thiagolara avatar Jul 14 '22 07:07 thiagolara

here too, same error

juanpablolarice avatar Jul 14 '22 14:07 juanpablolarice

@thiagolara I'm Brazilian too but I'll leave it in English. I opened a support ticket at MercadoPago.

Hours later it was working normally. There were other errors but I believe they were only of interest to the developers.

Two days later I received the support reply citing the below solution link.

But I didn't see the need to use the solution because I'm not having conflicts here anymore. But, if something changes, I will test the implementation of "frame-src""

#https://github.com/mercadopago/sdk-js/discussions/75

agds23 avatar Jul 15 '22 16:07 agds23

Found the problem. Thing is you are probably not getting the preference id due missing or wrong params. Put all your code into a try catch function, and log any error to see what is wrong.

Santukon avatar Aug 18 '22 17:08 Santukon