BC, your local Docker and missing Functions due to missing SSL

Author

Daniel Gorski

CEO

2 Min. Lesezeit

Missing features in local BC Docker without SSL

Have you ever tried to take a look at the phone / tablet client by using your browser?

Let's start from scratch and set up your local environment. In this case, I set up a new Docker container without SSL:

  1. Install Docker (if necessary)
  2. Enable Hyper V in BIOS/Windows (if necessary)
  3. Run Windows PowerShell as Administrator
  4. Install BCContainerHelper:
    Install-Module BCContainerHelper
  5. Run the wizard and follow the steps:
    New-BCContainerWizard
  6. After a while your container is ready 🎉

Open your browser and enter your local BC container address, for example:

http://bc18-ci/BC/tablet

Or go to a specific table or page:

http://bc18-ci/BC/tablet?page=5050

ℹ️ More details:
Opening the Business Central Tablet or Phone Client from a Browser

Select a specific contact and open the card:

Open contact card in BC container

To see the phone client, use this:

http://bc18-ci/BC/phone?page=5050

Phone client view in browser

On the Factbox "Contact Picture" we miss one function: "Take" (Take a Picture)

Without SSL:

Missing

With SSL:

Available

Jump into your Edge or Chrome browser and look for this experimental flag:

edge://flags/#unsafely-treat-insecure-origin-as-secure

Browser flag for insecure origins

Voilá

Restart your browser and try to take your photo using your local device/webcam:

Take a photo using local webcam

Click "Use":

Use the taken picture

And you're good to go:

Final result with stored contact picture