Skip to content

TypeError: Cannot read property 'allowedOrigins' of undefined #19

@Bachstelze

Description

@Bachstelze

With docker-compose up this error occurs:

docker_bionic_matecat | const allowedOrigins = config.cors.allowedOrigins;
docker_bionic_matecat |                                    ^
docker_bionic_matecat | 
docker_bionic_matecat | TypeError: Cannot read property 'allowedOrigins' of undefined
docker_bionic_matecat |     at Object.<anonymous> (/var/www/matecat/nodejs/server.js:34:36)
docker_bionic_matecat |     at Module._compile (internal/modules/cjs/loader.js:1063:30)
docker_bionic_matecat |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
docker_bionic_matecat |     at Module.load (internal/modules/cjs/loader.js:928:32)
docker_bionic_matecat |     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
docker_bionic_matecat |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
docker_bionic_matecat |     at internal/main/run_main_module.js:17:47

Do i have to configure the allowed origins?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions