0

i'm trying use google drive API quickstart project inside electron. here's my sample project:
electron quickstart with google api

how it should works:
when click authorize button, it'll redirected to authUrl then we can copy the authorization key, insert the authorization key page to input with id 'key'

when i run from electron,its return following error:

D:\koding\electron-example\gdrive\node_modules\gaxios\build\src\gaxios.js:68 Refused to connect to 'https://oauth2.googleapis.com/token' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'connect-src' was not explicitly set, so 'default-src' is used as a fallback.

how to resolve this?

Aerials
  • 4,231
  • 1
  • 16
  • 20
dhanyn10
  • 704
  • 1
  • 9
  • 26

1 Answers1

0

answered from this post refused-to-load-the-script-because-it-violates-the-following-content-security

we need to specify which kind of address that will allowed by content security

dhanyn10
  • 704
  • 1
  • 9
  • 26