-1

I want to access data in iframe tag from different domains (developers.google.com/my-business/content/tools/placeid-lookup)

but I have this problem error

Failed to read the 'contentDocument' property from 'HTMLIFrameElement Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.

how to do it?

Mojtaba Ahmadi
  • 1,044
  • 19
  • 38

1 Answers1

0

You can't ideally do this with JS because of the security issues it'd cause. Maybe check how you can enable CORS in your own local environment for development by changing the settings in your own browser, but this of course wouldn't be an option in production

paisley.london
  • 121
  • 1
  • 9