Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Google Achievements in WebGL

Discussion in 'WebGL' started by kirkfernz, Aug 26, 2017.

  1. kirkfernz

    kirkfernz

    Joined:
    Sep 16, 2013
    Posts:
    31
    Hi,

    I'm trying to implement Google Achievements in WebGL. So far I was able to implement the Google sign in.
    Now I'm trying to perform Authorization using the following URL
    https://www.googleapis.com/auth/games
    And I'm getting the following error
    No 'Access-Control-Allow-Origin' header is present on the requested resource
    I searched about it and it says I have to implement Cross-Origin Resource Sharing, just wanted to confirm if that's the problem or its something else.

    I'm new to web development so please bear with my questions.
     
  2. Mohammad_Hunain

    Mohammad_Hunain

    Joined:
    Aug 6, 2019
    Posts:
    3
    Hi, you just need to add extension of CORS, and it will resolve automatically.
    can you please tell me how you implemented Google Signin for WebGL. I got stuck in it from 2 Days