Git Product home page Git Product logo

Comments (12)

twelch24 avatar twelch24 commented on September 2, 2024

Also seeing this on previously working app setups. I've tried removing the app and settings and logging in again, still fails.

from mylibrenms.

pheinrichs avatar pheinrichs commented on September 2, 2024

Thanks for the notice, I'll look into this right away

from mylibrenms.

pheinrichs avatar pheinrichs commented on September 2, 2024

@tlkhorses @twelch24 Okay, this seems to be an issue with servers and cors not enabled. My apologies, on the new iOS update in ionic it enforces this and I have it enabled so I didn't notice this issue.
I will update the app next week with a native plugin to avoid this issue, as a temporary fix all you need to do is enable it on your servers for the app to work.

https://github.com/librenms/librenms/blob/master/doc/Support/Configuration.md#cors-support

from mylibrenms.

tlkhorses avatar tlkhorses commented on September 2, 2024

Hi, I added the cors enabled to the config.php and didn't work. Added the whole section, restart and still no go.

from mylibrenms.

twelch24 avatar twelch24 commented on September 2, 2024

from mylibrenms.

tlkhorses avatar tlkhorses commented on September 2, 2024

from mylibrenms.

tlkhorses avatar tlkhorses commented on September 2, 2024

He can reach it via browser on the phone. I checked global on the server and it shows enabled.

from mylibrenms.

laf avatar laf commented on September 2, 2024

Check the web server logs. On one install of mine without cors I see:

192.168.80.31 - - [14/Jan/2018:21:52:56 +0000] "OPTIONS //api/v0 HTTP/1.0"

Also, get them to try a manual curl if they can using the token to see if it works:

curl -H 'X-Auth-Token: TOKEN' 'https://URL/api/v0

from mylibrenms.

pheinrichs avatar pheinrichs commented on September 2, 2024

1.2.1 push to apple store. Pending approval, with cors fix.

from mylibrenms.

tlkhorses avatar tlkhorses commented on September 2, 2024

@laf where are the server logs? Only see /var/log/... stuff.
@pheinrichs would it make a difference what user level they are at? These two are Global Read where mine is administrator and happens to be the only Android.

from mylibrenms.

pheinrichs avatar pheinrichs commented on September 2, 2024

1.2.1 is available on iOS so you should be able to remove the cors config if you wish

@tlkhorses the server logs will be in your librenms directory I believe Default "/opt/librenms/logs/access_log"
Global read shouldn't be an issue also, I was able to test a user with similar permissions with no problems.

from mylibrenms.

tlkhorses avatar tlkhorses commented on September 2, 2024

The update fixed the issue for us. Thanks.

from mylibrenms.

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.