Custom CSS not working

Technical Support

Suggested Topics

  • 0 Votes
    10 Posts

    @nullpointer said in Connecting to socket endpoint from a custom frontend:

    var socket = io('', { transport: ["polling", "websocket"], path: "/", extraHeaders: { withCredentials: true, cookie: 'express.sid=s%3Am0UuuyatTTSajjAnI5gGSukaJSHJaiKpIVhb3H7L.TW4c4vZn4blOnWV1gilF9HhMqFc9g9V7NnLLZHMAmFg;; Path=/; HttpOnly; SameSite=Lax', }, });

    withCredentials is not a header - it's an option that should be on the same level in the settings object as extraHeaders. It should be used instead of setting the cookie header manually in the browser - but it will only work if the browser has the cookies for the website you're connecting to and needs explicit permission from it via headers (the Access-Control-Allow-* headers).
    This should look more like this:

    var socket = io('', { transport: ["polling", "websocket"], path: "/", withCredentials: true, });

    The reason the NodeBB test example works is that it's not ran inside a browser - NodeJS, as a server environment, has quite different security requirements than browsers and also just can't save credentials for each page (imagine what programming horror having this kind of mutable state in code would be...). I'm not sure what is your ultimate goal with this code, so that's why I mentioned the cookies as needed for server-side code.

  • 2 Votes
    6 Posts

    @wayne-workman that is actually a very good idea that we can also use...

    We do sometimes give people 1 week or 2 weeks "temporary" bans, which would look better if not tagged as "banned", so it is more obvious for all the users...

    it would be good to have options such as "inactive" , "frozen" , "penalized" etc.

  • 0 Votes
    3 Posts

    Problem solved with version 3.

  • 0 Votes
    2 Posts

    NodeBB address in use, exiting... Error: listen EADDRINUSE

    This usually means that NodeBB is already running. Use ./nodebb stop and if you still have the issue look up "kill process on port" with a search engine.

  • Does not work search

    Solved Technical Support
    0 Votes
    15 Posts

    @agusputra yeah its truly, but it can update only from console via npm i nodebb-plugin-dbsearch