Apple SSO doesn't work anymore

            this.app.fire('UI:LOADING', true);
            this.signInSSOElement.enabled = false;

            console.log('start apple login');

            let redirectURI = 'https://account.ohhh-inc.com';
            

            AppleID.auth.init({ 
                clientId : 'com.ohhhinc.sso.service',
                scope : 'email',
                redirectURI : redirectURI,
                responseType: 'code',
                responseForm: 'formpost',
                state : Date.now().toString(),
                nonce : 'ohhh.incisaperfectdeveloper',
                usePopup : true
            });

            try {
                const data = await AppleID.auth.signIn();
                // Handle successful response
                console.log('Apple login successful:', data);
            } catch (error) {
                this.app.fire('UI:LOADING', false);
                // Handle error
                console.log('apple login error : ', error);
                this.app.fire("UI:Free");
                if(UserManagement.instance.mode == "Gallery") {
                    this.app.fire('MUSEUM:ToggleUI');
                    this.app.fire('UI:EnableHambMenu');
                }
                this.app.fire('enableUserButton');
                LoginCamille.instance.returnFireEvent = undefined;
                this.app.fire('login-int:close', { result: 'failed', msg: 'Apple login error.\nPlease try another SSO'});
            }

        }, this);

We are doing Apple SSO in Javascript.

But we have error : Access to font at 'https://appleid.cdn-apple.com/appleauth/static/bin/cb3432457731/dist/assets/shared-icons.woff' from origin 'https://appleid.apple.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I don't know how to fix this.

Answered by suejunghuh in 797751022

This has been resolved. It was a bug at our side.

Accepted Answer

This has been resolved. It was a bug at our side.

Apple SSO doesn't work anymore
 
 
Q