react-apple-login icon indicating copy to clipboard operation
react-apple-login copied to clipboard

usePopup doesnt work

Open avokrado opened this issue 4 years ago • 1 comments

When trying to use usePopup={true}, error Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'..... occurs, which results in not working login.

My component:

<AppleLogin
      clientId={APPLE_CLIENT_ID}
      redirectURI={`${URL}`}
      scope={'name email'}
      responseMode={'form_post'}
      usePopup={true}
      render={(renderProps) => (
        <Button
         ...
        />
      )}
    />

Any known course of actions to fix this?

avokrado avatar Jan 05 '21 08:01 avokrado

@avokrado , Can you share a screenshot what exactly error is? Because error you shows is not related to library, there are security configuration you should have in nginx where you have to allow to execute library JS.

patelmayankce avatar Feb 24 '21 07:02 patelmayankce