RADAR-base / RADAR-Questionnaire

Questionnaire mobile application (Active App) for RADAR-base
https://radar-base.org/
Apache License 2.0
17 stars 15 forks source link

Compress records to gzip before sending #1706

Closed mpgxvii closed 1 year ago

mpgxvii commented 1 year ago
blootsvoets commented 1 year ago

Regarding CORS: try adding annotation to gateway ingress:

nginx.ingress.kubernetes.io/cors-allow-headers: DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Content-Encoding

We’ll need to add that to all installations though… is there a way that you can try using pako once and fall back to regular request if it fails due to CORS?

mpgxvii commented 1 year ago

Regarding CORS: try adding annotation to gateway ingress:

nginx.ingress.kubernetes.io/cors-allow-headers: DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Content-Encoding

We’ll need to add that to all installations though… is there a way that you can try using pako once and fall back to regular request if it fails due to CORS?

@blootsvoets Thanks, adding the annotation to gateway works! I've also made the changes to fallback to regular request if it fails.