I am trying to figure out how to configure sign in with apple in JS and no matter what I do I keep running into this same issue:
"app.js:231 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://*.apple.com https://*.cdn-apple.com ". Either the 'unsafe-inline' keyword, a hash ('sha256-6wRdeNJzEHNIsDAMAdKbdVLWIqu8b6+Bs+xVNZqplQw='), or a nonce ('nonce-...') is required to enable inline execution."
I don't understand why no matter what I do that this keeps coming up. I pass in a nonce and I still get this error.
<meta name="appleid-signin-client-id" content="{ID}">
<meta name="appleid-signin-scope" content="name email">
<meta name="appleid-signin-redirect-uri" content="{URL}">
<meta name="appleid-signin-nonce" content="nonce-2726c7f26c">
<meta name="appleid-response-mode" content="formpost">
<meta name="appleid-signin-use-popup" content="true">
I keep trying to pass in different values for nonce just to get the window working but I keep running into a screen that says "invalidrequest" and that error I put above.
I don't understand how best to generate a nonce inline like this but I was hoping just to get it working one time to prove the concept. Assistance would be much appreciated.
"app.js:231 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://*.apple.com https://*.cdn-apple.com ". Either the 'unsafe-inline' keyword, a hash ('sha256-6wRdeNJzEHNIsDAMAdKbdVLWIqu8b6+Bs+xVNZqplQw='), or a nonce ('nonce-...') is required to enable inline execution."
I don't understand why no matter what I do that this keeps coming up. I pass in a nonce and I still get this error.
<meta name="appleid-signin-client-id" content="{ID}">
<meta name="appleid-signin-scope" content="name email">
<meta name="appleid-signin-redirect-uri" content="{URL}">
<meta name="appleid-signin-nonce" content="nonce-2726c7f26c">
<meta name="appleid-response-mode" content="formpost">
<meta name="appleid-signin-use-popup" content="true">
I keep trying to pass in different values for nonce just to get the window working but I keep running into a screen that says "invalidrequest" and that error I put above.
I don't understand how best to generate a nonce inline like this but I was hoping just to get it working one time to prove the concept. Assistance would be much appreciated.