Import Images via Url

Hello,

I am following the “Improve OCR quality for receipt processing with Tesseract and Label Studio” tutorial. . For my project, I selected the OCR template and used a dataset of my own captured receipts and invoices.

Before executing the script, I ran the serve_local_files.sh script as instructed. However, when I try to import the generated JSON file into Label Studio, I always get the following error:

There was an issue loading URL from $ocr value

Things to look out for:

    URL is valid
    URL scheme matches the service scheme, i.e. https and https
    The static server has wide-open CORS, more on that here

Technical description:
URL: http://localhost:8081/10781078.jpeg

What’s strange is: when I click on the image URL in the error message, it does load correctly in my browser — so the image path seems accessible.
My Json:

[
{
    "data": {
      "ocr": "http://localhost:8081/10791079.jpeg"
    },
    "predictions": [
      {
        "result": [
          {
            "id": "5572e255-4",
            "from_name": "bbox",
            "to_name": "image",
            "type": "rectangle",
            "value": {
...

Thanks in advance for any insights!