Code Monkey home page Code Monkey logo

Comments (4)

arnaudbesnier avatar arnaudbesnier commented on June 15, 2024

Hi @Shahor, I am not convinced that the liana overrides the cors configuration of your server.
Maybe it is a configuration issue.

Can you detail how (in which order) you declare your middlewares to give us some insights about what the issue is?

Thanks for your help.

from forest-express.

Shahor avatar Shahor commented on June 15, 2024

Hello,

https://github.com/ForestAdmin/forest-express/blob/devel/src/index.js#L115-L119

If I'm not mistaken, this bit of code overrides whatever cors configuration was already set

from forest-express.

arnaudbesnier avatar arnaudbesnier commented on June 15, 2024

Hi @Shahor,

Can you please πŸ™answer to my previous questions about the order of your middlewares (your own CORS and ForestAdmin init)?

We use our own tool in our express servers and don't observe such issues but we use an undocumented liana initialisation configuration:

Liana.init({
  expressParentApp: app, // Express parent app
  envSecret: process.env.FOREST_ENV_SECRET,
  authSecret: process.env.FOREST_AUTH_SECRET,
  sequelize: Sequelize,
  connections: [sequelize], // Array of sequelize connections
});

Let me know if it helps

from forest-express.

arnaudbesnier avatar arnaudbesnier commented on June 15, 2024

Hi @Shahor, this is fixed in v5 lianas.

Feel free to reopen this ticket if the issue persists after the upgrade.
🌲🌲🌲

from forest-express.

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.