GithubHelp home page GithubHelp logo

Comments (7)

louis-lau avatar louis-lau commented on May 24, 2024 1

This looks to be an issue with wildduck itself, moving the issue.

In the meantime you can add the new cors configuration, or use an older version.

from wildduck-dockerized.

louis-lau avatar louis-lau commented on May 24, 2024 1

I've merged the latest wildduck config with the config in this repo. But I'll still have to find another way to do this in the future, so I'm keeping this issue open with another title.

from wildduck-dockerized.

networkException avatar networkException commented on May 24, 2024

I looked into it a little. You could say that its an issue in the default configuration of the docker container (see

) or an issue of wildduck itself as its not expecting cors not be undefined. Eiter could get fixed quite easily

by appending

[cors]
origins = ["*"]

or by adding a nullish check

origins: [].concat(config.api.cors?.origins ?? ['*']),

from wildduck-dockerized.

louis-lau avatar louis-lau commented on May 24, 2024

Anyone upgrading wildduck with their old config would get the error as well, so definitely a wildduck issue heheh.

I don't have much time right now, but feel free to send in a pr with a fix if you can fix it 😁

from wildduck-dockerized.

networkException avatar networkException commented on May 24, 2024

alright

from wildduck-dockerized.

andris9 avatar andris9 commented on May 24, 2024

WildDuck is meant to be managed in a way where production config is merged (not replaced) with the default config. So the cors (or any other) key should be available if it is listed in the default config. wildduck-dockerized uses a fixed config which is a problem in this case as there are going to be new keys added to the config in the future as well. It should probably be kept up to date to reflect the new keys or it should merge config files.

from wildduck-dockerized.

louis-lau avatar louis-lau commented on May 24, 2024

Hmm, I wasn't aware of this. That sounds like a bit of a nightmare to me. IMO a new required config option is a breaking change. I'll have to redo the way wildduck-dockerized manages the configs if that's the case.

from wildduck-dockerized.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.