wronan
Cadet
- Joined
- Aug 22, 2023
- Messages
- 6
Hello.
I'm experiencing peculiar problems with CORS on TrueCharts Traefik.
My TrueNAS version is TrueNAS-SCALE-22.12.3.3
Traefik app version is 2.10.4_21.0.0
I've said "peculiar" because it's hard for me to believe that no one stumbled upon the same but I'm searching and searching... and nothing.
The base issue is: response for the OPTION (preflight) request made to the app behind the Traefik does not contain `access-control-allow-origin` header which results in browser error.
There's a `ix-traefik-tc-opencors-headers@kubernetescrd` middleware available so I've added it to my app, but it changed nothing. Furthermore looks like the headers from the middleware are not applied at all. I've locally edited the corresponding yaml file from the release directory, changing the value of `access-control-max-age` value from `100` to `101` which found it's reflection in the Traefik dasboard but the http responses still contain the old `100`.
In the Traefik dashboard I see the `Used by Routers` section populated with actual services but without any other effect.
So... if the built-in middleware is not working made me thinking that maybe the custom ones will which lead me to the second issue: I've discovered is that I can't add own `Custom Request Headers` and `Custom Response Headers`.
This seems like a GUI problem: submitting the app form causes `TypeError: gt.schema.items is undefined` error in the browser console. I'm a backend developer, frontend is not my thing but considering the "old times" when every browser handled JS in it's own way I've checked it on another browser with the same result (first one was FF, the second one was Chrome).
--------------------
I failed to find anything related to those two problems, neither here nor on Github and this is what worries me - hard for me to believe that such basic issues were not noticed by anyone. Before I post an issue on GH I'd be glad if someone could confirm you can also observe the same problems.
Thx in advance.
I'm experiencing peculiar problems with CORS on TrueCharts Traefik.
My TrueNAS version is TrueNAS-SCALE-22.12.3.3
Traefik app version is 2.10.4_21.0.0
I've said "peculiar" because it's hard for me to believe that no one stumbled upon the same but I'm searching and searching... and nothing.
The base issue is: response for the OPTION (preflight) request made to the app behind the Traefik does not contain `access-control-allow-origin` header which results in browser error.
There's a `ix-traefik-tc-opencors-headers@kubernetescrd` middleware available so I've added it to my app, but it changed nothing. Furthermore looks like the headers from the middleware are not applied at all. I've locally edited the corresponding yaml file from the release directory, changing the value of `access-control-max-age` value from `100` to `101` which found it's reflection in the Traefik dasboard but the http responses still contain the old `100`.
In the Traefik dashboard I see the `Used by Routers` section populated with actual services but without any other effect.
So... if the built-in middleware is not working made me thinking that maybe the custom ones will which lead me to the second issue: I've discovered is that I can't add own `Custom Request Headers` and `Custom Response Headers`.
This seems like a GUI problem: submitting the app form causes `TypeError: gt.schema.items is undefined` error in the browser console. I'm a backend developer, frontend is not my thing but considering the "old times" when every browser handled JS in it's own way I've checked it on another browser with the same result (first one was FF, the second one was Chrome).
--------------------
I failed to find anything related to those two problems, neither here nor on Github and this is what worries me - hard for me to believe that such basic issues were not noticed by anyone. Before I post an issue on GH I'd be glad if someone could confirm you can also observe the same problems.
Thx in advance.