You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed my own server and I added Basic Auth to protect it. It works from the command line:
curl --data "language=en-US&text=a simple test" https://<user>:<pw>@languagetool.domain.tld/v2/check
{"software":{"name":"LanguageTool","version":"5.2","buildDate":"2020-12-30 14:55","apiVersion":1,"premium":false,"premiumHint":"You might be missing errors only the Premium version can find. Contact us at support<at>languagetoolplus.com.","status":""},"warnings":{"incompleteResults":false},"language":{"name":"English (US)","code":"en-US","detectedLanguage":{"name":"French","code":"fr","confidence":0.815771}},"matches":[{"message":"This sentence does not start with an uppercase letter.","shortMessage":"","replacements":[{"value":"A"}],"offset":0,"length":1,"context":{"text":"a simple test","offset":0,"length":1},"sentence":"a simple test","type":{"typeName":"Other"},"rule":{"id":"UPPERCASE_SENTENCE_START","description":"Checks that a sentence starts with an uppercase letter","issueType":"typographical","category":{"id":"CASING","name":"Capitalization"}},"ignoreForIncompleteSentence":true,"contextForSureMatch":-1}]}
The browser extension is not working. The extension works when the Basic Auth part of the URL is omitted. I also tried using only lowercase names and passwords, only URL save characters, but I had no luck. Am I missing something?
The text was updated successfully, but these errors were encountered:
I took a quick look into the Firefox extension and could get this error message out of it:
Uncaught (in promise) {…}
message: "Verbindung zu https://user:[email protected]/v2/check fehlgeschlagen (#1, code=undefined)"
reason: "ConnectionError"
response: "Window.fetch: https://user:[email protected]/v2/check is an url with embedded credentials."
stack: undefined
status: 0
<prototype>: {…
FF and other browsers are preventing requests to URLs containing embedded credentials (for obvious reasons). So this issue is not a bug report.
However, my initial problem still persists. How do I secure my server if my clients (extensions) only provide one URL configuration option?
The extension could extract embedded credentials from the URL and add them as Authorization Headers to the request instead, right?
I installed my own server and I added Basic Auth to protect it. It works from the command line:
The browser extension is not working. The extension works when the Basic Auth part of the URL is omitted. I also tried using only lowercase names and passwords, only URL save characters, but I had no luck. Am I missing something?
The text was updated successfully, but these errors were encountered: