Comments (12)
Also seeing this on previously working app setups. I've tried removing the app and settings and logging in again, still fails.
from mylibrenms.
Thanks for the notice, I'll look into this right away
from mylibrenms.
@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.
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.
from mylibrenms.
from mylibrenms.
He can reach it via browser on the phone. I checked global on the server and it shows enabled.
from mylibrenms.
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.
1.2.1 push to apple store. Pending approval, with cors fix.
from mylibrenms.
@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.
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.
The update fixed the issue for us. Thanks.
from mylibrenms.
Related Issues (20)
- Translation Multilingual HOT 7
- syslog general HOT 1
- Only 24-hr graphs show HOT 13
- ack'ed downs HOT 1
- graphs the same HOT 6
- Feature: storage graphs HOT 2
- Ignored devices still visible as down on dashboard
- Can't delete or modify servers HOT 6
- Normal user with API token access not see any devices HOT 1
- App no longer connects to Librenms HOT 1
- Graphics for Services attached to Devices
- ldap authentication broken ? HOT 1
- APK available for download?
- myLibreNMS removed from iOS app store? HOT 5
- add server problem HOT 2
- Are we able to get alerts? HOT 1
- Default Server Option
- All graphs show 24hours
- Abandoned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mylibrenms.