Comments (6)
Something is fishy:
Line 722 in 6204670
from syncthing.
Ah, this is apparently caused by /meta.js
not being exempt from our authentication check. Maybe we need to add /meta.js
here?
Line 54 in 6204670
At least the content doesn't look sensitive to me:
var metadata = {
"authenticated": true,
"deviceID": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"deviceIDShort": "XXXXXX"
};
from syncthing.
I don't follow. There's nothing wrong with the content type. It's behind auth, as many other things. The OP's issue seems to be some proxy problem together with trying to interpret a retuned 403 error.
from syncthing.
The problem is that we're loading meta.js
as regular frontend code:
syncthing/gui/default/index.html
Line 1080 in 6204670
Once strict MIME type handling is enforced via X-Content-Type-Options: nosniff, this ends up as an error in the browser console.
Judging from a quick test, it doesn't break the UI even when X-Content-Type-Options: nosniff
is added by a reverse-proxy. So it's more of an annoyance than a real bug and mostly not the cause of the problem observed by the user.
My proposal would be to exempt meta.js from authentication and instead populate its authenticated
field dynamically:
Lines 717 to 721 in 6204670
from syncthing.
It doesn't break the UI at all as far as I can tell. There's an error in the console about it when you're not logged in, that's all. Potentially this could be nicer, perhaps we don't try to load the resource when not logged in, but I don't see a bug or problem here...
From what I can see in the forum thread the OP had some entirely unrelated problem with the proxy or their browser plugins and just latched onto this as the visible error in the console.
from syncthing.
From what I can see in the forum thread the OP had some entirely unrelated problem with the proxy or their browser plugins and just latched onto this as the visible error in the console.
Aye. nginx-proxy-manager has some interesting config bits:
from syncthing.
Related Issues (20)
- Provide advanced parameter configuration: Disable copying blocks from other folders on the device HOT 3
- Shutdown switch in header instead of language selector HOT 2
- Last version breaks syncthing on MacOS Mojave (10.14.6) HOT 1
- I need help / Firewall and ports / ips HOT 1
- Trashcan max size option HOT 2
- Ignore specific folder to sync deletion HOT 5
- Deleting/moving directory on Android causes error: folder marker missing (this indicates potential data loss, search docs
- bittorrent? HOT 1
- Email notifications HOT 3
- Panic no space left on the device HOT 3
- A dot at the end of a folder name will cause sync error HOT 4
- WebUI table column widths broken on iPhone 12 Pro Max and wider
- Device names aren't updating on remote peers HOT 3
- Ignore old files HOT 1
- Adding a folder that has previously been removed causes errors and odd behavior HOT 1
- Filenames with extended characters not ignored correctly on macOS
- Recent Changes dialog resizable.
- Add new state for serving data to others HOT 1
- File system notifications missed for recreated directories HOT 1
- synching tries to connect par-8ks.syncthing.net every minute even if discovery, upgrade and usage reporting is disabled HOT 2
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 syncthing.