Post A4CM2KN5dHBkLRLCtM by tio@venera.social
(DIR) More posts by tio@venera.social
(DIR) Post #A4CM2KN5dHBkLRLCtM by tio@venera.social
2021-02-12T12:36:56Z
0 likes, 0 repeats
Does anyone know how to properly setup CORS with partial content loading on nginx @amolith @snopyta @alfred @heluecht ? Tagged some people in the hopes to get some help 😁 .more_set_headers "Access-Control-Allow-Origin https://www.tromsite.com";Works but does not have partial content loading.Tried: more_set_headers "Access-Control-Allow-Headers range"; more_set_headers "Access-Control-Allow-Methods: GET, POST, OPTIONS"; more_set_headers "Accept-Ranges bytes"; more_set_headers "Access-Control-Allow-Credentials true";Still didn't work. We had it working with htaccess for apache with:RewriteCond %{REQUEST_METHOD} OPTIONSRewriteRule ^(.*)$ $1 [R=200,L]+SetEnvIf Origin "^http(s)?://(.+\.)?(tromsite\.com|tromsite\.de)$" origin_is=$0 Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_isHeader always set Access-Control-Allow-Headers "range" Header always set Access-Control-Expose-Headers: "Accept-Ranges, Content-Encoding, Content-Length, Content-Range"Header always set Access-Control-Allow-Methods: "POST, GET, OPTIONS"Header always set Accept-Ranges "bytes"Header always set Access-Control-Allow-Credentials "true"
(DIR) Post #A4CM2KxxQCgABmaeMC by heluecht@pirati.ca
2021-02-12T12:55:00Z
0 likes, 0 repeats
I really don't have any clue about CORS.