Skip to content Skip to sidebar Skip to footer

Getting Forge 2-legged Authentication Using Cross Request

I'm trying to create a simple html page to display a uploaded model to forge. For initialize the forge viewer it required the access-token. For request the access token I'm using t

Solution 1:

As you noticed, you cannot obtain a Forge Token via client-side scripting, it will throw this CORS error. This is by design.

I would recommend a simple server-side authentication, it's quite direct to deploy this sample locally:

  1. Install NodeJS
  2. Download the project
  3. Set the variables with your ID & Secret
  4. Run the project

Post a Comment for "Getting Forge 2-legged Authentication Using Cross Request"