Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Report Only] Refused to frame #4

Open
odisi opened this issue Jun 11, 2021 · 8 comments
Open

[Report Only] Refused to frame #4

odisi opened this issue Jun 11, 2021 · 8 comments

Comments

@odisi
Copy link

odisi commented Jun 11, 2021

[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.

@alztec
Copy link

alztec commented Jun 17, 2021

here too, same error

@alztec
Copy link

alztec commented Jun 17, 2021

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

image

@mauriciosoares
Copy link

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.

@agds23
Copy link

agds23 commented Jul 3, 2022

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?

@thiagolara
Copy link

@agds23 Did you find a solution?

@juanpablolarice
Copy link

here too, same error

@agds23
Copy link

agds23 commented Jul 15, 2022

@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""

#mercadopago/sdk-js#75

@Santukon
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants