Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS error when using database feature #29

Open
b1ackhawk-uh60 opened this issue Dec 10, 2020 · 11 comments
Open

CORS error when using database feature #29

b1ackhawk-uh60 opened this issue Dec 10, 2020 · 11 comments

Comments

@b1ackhawk-uh60
Copy link

There is an error when attempting to use the database feature:

Access to XMLHttpRequest at 'https://usage-monitoring.com/db/svSettings.php' from origin 'http://192.168.11.1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

It looks like CORS access control has been implemented recently, but I don't think CORS AC will work in this case because the origin is always going to be a router on a private network with it's own ip or local hostname and there is no way of knowing every ip and hostname that someone may choose for their router.

@b1ackhawk-uh60
Copy link
Author

also if you have a hostname whitelisted in your CORS policy already, let me know what it is and I will check to see if I can add it to my hosts file as a temp workaround.

@sheckandar
Copy link

Same issue here.

I'm using Yamon 3.4.7 on OpenWRT and getting 403 Forbidden errors every time settings are being saved to the database by Yamon.

@rlsolomon
Copy link

Same issue here - 192.168.0.1 and latest YaMon 4.0.7

@mgrn0
Copy link

mgrn0 commented May 10, 2021

unfortunately no change in this issue over several months, I tried to contact the developer multiple times (mail, fb page).. is this project still maintained?

@sergentum
Copy link

I have JS error if dbkey is presented, there is 500 response code from the server.
But when dbkey is cleared, then it works

@mgrn0
Copy link

mgrn0 commented Jul 27, 2021

Same here, I tried to contact the maintainer multiple times through email, git, fb, .. no response at all :(

Unfortunately it looks like this project is dead. I hope to be proven wrong.

@zdenop
Copy link

zdenop commented Aug 16, 2021

Did you find any alternative?

@sergentum
Copy link

I fixed it somehow, it was required to recreate links, so I reinstalled it couple times and now looks like it works. It's far from perfect state, but gives me some information at least

@mgrn0
Copy link

mgrn0 commented Aug 17, 2021

Same here, it works as is, and since I did not find a really good alternative, I am staying with the compromise ;)

@zdenop
Copy link

zdenop commented Aug 19, 2021

Have you been successful with Yamon 3.4.7 or Yamon 4 ?

@mgrn0
Copy link

mgrn0 commented Aug 19, 2021

I am still using HTML: 3.4.5 / Script: 3.4.7. Never change a running system (especially without updates from the dev), so will stay with that for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants