New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ingressAdvanced): use tc-opencors-chain if allow-cors is enabled #13240
Conversation
|
I'm not a fan of hardcoding it just to cover an optional use case. |
I think that's fair. The reason I didn't make it optional was that my assumption is that if this impacts one client, then I can see it affecting others as well. I'll look to add an option. |
|
why not just add back the override default middlewares option |
VETO'ed, that override was removed for good reasons.. It's unsafe and stupid. |
I did think it was removed for a reason 😅 |
|
@stavros-k I think we might want to move this (open vs closed cors in values.yaml) to common? |
You mean so that this can be toggled on any app? |
Sounds good, but not exposed in the UI to all apps. |
Sounds good. So you want me to move the value itself andthe flag wrapped section of template to common and then leave the exposed toggle only on this one app for now? |
|
Updated this PR to make it use truecharts/library-charts#530 |
… middleware if true (#530) **Description** As per the discussion on truecharts/charts#13240, I've added the cors enablement flag to common. Once everyone is happy with this PR, I'll update the original to expose this flag instead of creating it's own. **⚙️ Type of change** - [x] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ]⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [x] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ]⚠️ My changes generate no new warnings - [x] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._
Common is just bumped on this afaik, so you should be able to do this now :) |
Thanks yeah, I saw my other PR had been merged. Thanks. Will get this updated. |
Signed-off-by: Michael Walter Van Der Velden <mikevdv@vandie.co.uk>
|
@Ornias1993 I think that should be good now then. Let me know if you want any further changes |
|
Updated as @Ornias1993 requested that it not just be available on jellyfin |
|
This PR is locked to prevent necro-posting on closed PRs. Please create a issue or contact staff on discord if you want to further discuss this |

Description
⚒️ Allows for the optional use of the existing Traefik CORS setup for Apps as CORS is required to use the official jellyfin-vue client. Has been updated to rely on truecharts/library-charts#530
⚙️ Type of change
🧪 How Has This Been Tested?
Manually edited the chart's files on my own TrueNas Scale Server.
Checked that jellyffin was using the tf-opencors-chain in Traefik rather than basic-chain and ensured I could connect to jellyfin via a custom app of jellyfin-vue client when the added config was enabled but not if disabled.
📃 Notes:
This PR uses the same cors middleware setup as the existing audiobookshelf app to ensure conistancy. While it may be expected that the
tf-opencors-headersmiddleware could be added within the UI this unfortunately results in theAccess-Control-Allow-Originheader still being missing as the common chain conflicts.✔️ Checklist:
➕ App addition
If this PR is an app addition please make sure you have done the following.
icon.pngPlease don't blindly check all the boxes. Read them and only check those that apply.
Those checkboxes are there for the reviewer to see what is this all about and
the status of this PR with a quick glance.