Skip to content

Can't load custom traineddata when not using full url #998

@ShammoJake

Description

@ShammoJake

Tesseract.js version (version number for npm/GitHub release, or specific commit for repo)
"tesseract.js": "^4.0.6",

Describe the bug
We are trying to load the custom language model (gdt_model_17) in the following way. But in the deployed server, when we use the shortened url ABC/login.html instead of the fully qualified url (ABC.abc.com/login.hml) the language loading fails. We tried manually providing the full url to the path, that gives CORS error.

Image

The worker files are being loaded properly.

Expected behavior
Language should load for shortened url.

Device Version:

  • Windows 11
  • Chrome browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions