Apple log "Sign in with Apple"button appears with some different characters

I am having trouble with displaying the Apple Logo when creating a sign-in button "Sign in with Apple" on my web page. I have followed the apple documentation and used the apple js for sign in button.

The logo appears with random different characters when I run my web app on test server or local host.

I kept the meta tag as <meta http-equiv="Access-Control-Allow-Origin" content="*"/> in my header, but it is still not working.

Here is a screenshot of the situation: