12 Dec 2018 |
| etue joined the room. | 19:29:26 |
_hc | vanitasvitae: did you see my comment on w!337 | 19:30:15 |
Mathijs | alright, MR made | 19:30:24 |
[gibot] | [website] !337: build metadata reference: add keywords which shal… - https://gitlab.com/fdroid/fdroid-website/merge_requests/337 | 19:30:16 |
_hc | and merged 😀 | 19:31:37 |
| TobiasK left the room. | 20:05:07 |
| TobiasK joined the room. | 20:06:58 |
| etue left the room. | 21:06:09 |
| etue joined the room. | 21:06:36 |
Mathijs | perfect, thanks | 21:08:51 |
| etue left the room. | 21:11:19 |
| etue joined the room. | 21:11:40 |
| etue left the room. | 21:12:56 |
| etue joined the room. | 21:13:17 |
| etue left the room. | 21:24:40 |
| etue joined the room. | 21:25:04 |
Mathijs | I almost forgot: the .well-known file that just got merged needs access-control-allow-origin * in the header | 21:26:02 |
Mathijs | but I don't think I can do that via the gitlab repo | 21:26:16 |
Mathijs | I have this in my apache config:
Alias /.well-known/matrix/client /var/www/matrix/.well-known/matrix/client
<Location /.well-known/matrix/client>
Options None
AllowOverride None
Header set Content-Type "application/json"
Header set Access-Control-Allow-Origin "*"
</Location>
| 21:27:43 |
_hc | Mathijs: it shouldn't need an Alias if the real path matches, like in f-droid.org | 21:59:06 |
_hc | my guess is that those Headers are not required | 21:59:39 |
_hc | you can test on staging: https://staging.f-droid.org/.well-known/matrix/client | 22:00:12 |
| S007 joined the room. | 22:32:11 |
| etue left the room. | 22:44:38 |
Mathijs | In reply to @eighthave:matrix.org Mathijs: it shouldn't need an Alias if the real path matches, like in f-droid.org oh, yes, I use an alias in my config, but you're right, of course, it should be fine without the alias for f-droid.org | 23:06:15 |
| etue joined the room. | 23:12:19 |
Mathijs | In reply to @eighthave:matrix.org my guess is that those Headers are not required The header Content-Type "application/json" is indeed not required (but it makes firefox show the json all pretty) | 23:15:06 |
Mathijs | but the Header set Access-Control-Allow-Origin "*" is actually required for the .well-known file | 23:15:25 |
Mathijs | that's required because you can use riot-web in the browser, and that will then try to access the .well-known file cross-origin | 23:17:06 |
Mathijs | so I would guess this would be enough:
<Location /.well-known/matrix/client>
Header set Access-Control-Allow-Origin "*"
</Location>
| 23:18:05 |