Cross-Lab-Project / crosslab

https://Cross-Lab-Project.github.io/crosslab/
3 stars 4 forks source link

CORS #13

Open jonau opened 1 year ago

jonau commented 1 year ago

for cors options server responds with 500

auth

01/08/2023 6:37:30 PM
getAuth called
01/08/2023 6:37:30 PM
getAuth failed: Error: Authorization parameter is missing

gateway

01/08/2023 6:33:33 PM
141.24.210.126 - - [08/Jan/2023:17:33:33 +0000] "OPTIONS /devices HTTP/1.1" 500 579 "http://localhost:8081/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "141.24.210.126" ""
01/08/2023 6:33:33 PM
2023/01/08 17:33:33 [error] 29#29: *381 auth request unexpected status: 500 while sending to client, client: 141.24.210.126, server: api.goldi-labs.de, request: "OPTIONS /devices HTTP/1.1", host: "api.goldi-labs.de", referrer: "http://localhost:8081/"
01/08/2023 6:36:25 PM
2023/01/08 17:36:25 [error] 29#29: *383 auth request unexpected status: 500 while sending to client, client: 141.24.210.126, server: api.goldi-labs.de, request: "OPTIONS /devices HTTP/1.1", host: "api.goldi-labs.de", referrer: "http://localhost:8081/"
01/08/2023 6:36:25 PM
141.24.210.126 - - [08/Jan/2023:17:36:25 +0000] "OPTIONS /devices HTTP/1.1" 500 579 "http://localhost:8081/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "141.24.210.126" ""
01/08/2023 6:37:30 PM
2023/01/08 17:37:30 [error] 29#29: *385 auth request unexpected status: 500 while sending to client, client: 141.24.210.126, server: api.goldi-labs.de, request: "GET /devices HTTP/1.1", host: "api.goldi-labs.de"
01/08/2023 6:37:30 PM
141.24.210.126 - - [08/Jan/2023:17:37:30 +0000] "GET /devices HTTP/1.1" 500 579 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "141.24.210.126" ""
jonau commented 1 year ago

27f2a3d5d2b7c9e3a7c96fff793ec4289fc8d96f addressed it in a very general way. But we certainly should create a more narrow CORS configuration.