HOW TO: Update CORS in cPanel

HOW TO: Update CORS in cPanel

Updating CORS in cPanel

Creating a Bucket

This assumes that the User already has an existing cPanel Admin Account

Updating CORS settings on cPanel allows you to stream models hosted from your cPanel web server

  1. On cPanel, enable Show Hidden Files (dotfiles) in the File Manager settings

  2. Create a new file called .htaccess in the cPanel File Manager

  3. Paste the following and Save:

    <IfModule mod_headers.c>

        Header set Access-Control-Allow-Origin "*"

        Header set Access-Control-Allow-Methods "*"

        Header set Access-Control-Allow-Headers "*"

    </IfModule>

  4. Verify the correct headers are set by running curl -v file-url from the Windows command line:

  5. You should be able to load the model via udStream in both Web and Desktop Client

    • Related Articles

    • HOW TO: Google Cloud CORS Configuration for udStream

      Google Cloud CORS Settings Configuration This assumes that the User already has an existing Google Cloud Admin Account Rest XML APIs Get an Authorization access token configured to use the appropriate OAuth credentials. Copy the following and save as ...
    • HOW TO: Hosting a Model on Amazon Web Services (AWS)

      Loading my Datasets in AWS Creating a Bucket This assumes that the User already has an existing AWS Admin Account Select S3 from this menu, then Select ‘Create Bucket’ Next, upload the Converted .uds file to the bucket The Dataset should load ...
    • HOW TO: Hosting a Model on Microsoft Azure

      Loading my Datasets in Microsoft Azure Creating a Storage Account This assumes that the User already has an existing Microsoft Azure Admin Account Login into your Microsoft Azure account. This will take you to the landing page Under Azure Services, ...
    • udStream Browser: Guide to Getting Started

      Getting Started with udStream - Browser udStream can run in a Browser with the ability to view hosted Projects and already-converted .uds models anywhere in the world, on any machine. We currently support Google Chrome, Microsoft Edge and Mozilla ...
    • HOW TO: Markdown support for Project Information

      Adding Project Information and Markdown support udStream supports markdown for Projects. Project Information shows up as a pop-up when loading a project. Markdown is a lightweight markup language that you can use to add formatting elements (including ...