Make a quick vote 🗳 ️How do you refer to SuiteCRM extensions: add-ons or plug-ins? Click here to have your say 👈

Google API Authorization not working in Version 8

I am able to upload the Google API key json file through the admin console and it registers as configured. When I log in as a user, however, and attempt to Authorize the google account synchronization, I get the following error in the console:

Refused to display ‘https://accounts.google.com/’ in a frame because it set ‘X-Frame-Options’ to ‘deny’.

Uncaught DOMException: Blocked a frame with origin “https://crm.somesite.com” from accessing a cross-origin frame.
at Eb.triggerPageChange (https://crm.somesite.com/dist/dist_core___ivy_ngcc___fesm2015_core_js-_92d41-es2015.e946de48771ad5639031.js:40:68359)
at s. (https://crm.somesite.com/dist/polyfills-es2015.a3bedcb3bca9840b334e.js:1:31352)
at u.invokeTask (https://crm.somesite.com/dist/polyfills-es2015.a3bedcb3bca9840b334e.js:1:7770)
at t.runTask (https://crm.somesite.com/dist/polyfills-es2015.a3bedcb3bca9840b334e.js:1:3166)
at invokeTask (https://crm.somesite.com/dist/polyfills-es2015.a3bedcb3bca9840b334e.js:1:8820)
at invoke (https://crm.somesite.com/dist/polyfills-es2015.a3bedcb3bca9840b334e.js:1:8722)
at n.args. (https://crm.somesite.com/dist/polyfills-es2015.a3bedcb3bca9840b334e.js:1:31065)

Google’s Authorization Window won’t open. I thought maybe it was a server issue but I installed the latest version 7 on the same server and it worked just fine.

Ideas?

I was able to get it to work by clicking the Authorize button which opens up a blank page and then pasting the redirect URI in the address bar manually with “&getnew” added to the end of the URI.

https://crm.somesite.com/index.php?entryPoint=saveGoogleApiKey&getnew

1 Like