Replies: 1 comment 5 replies
-
@bdevos i totally get what you are trying to do. Do you mind telling me which React build tool you are using with Quinoa? CRA? Vite? Rewired? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am currently transitioning a React frontend application to become part of the Quarkus backend, instead of using a separate Nginx container exclusively for the frontend.
The integration with Quarkus Quinoa seems really promising and it's been great for development thus far.
However, I encountered a challenge when attempting to add a
nonce
that is necessary for our Content Security Policy. I have implemented similar solutions in other applications and I'm conversant with the entire process when incorporating the frontend in a standalone Nginx container. Yet, I am unable to figure out how to implement this with Quinoa.What I seek is a way to filter the request that is handling
index.html
. Once that's done, I should be able to insert the nonce into the CSP response header and modify the HTML content set to return in the response.I've tried several filtering methods but none appear to give me access to the requests that Quinoa handles.
As the nonce is a requirement under my company's policy, skipping it isn't an option. I wonder if there's a simpler approach I might have overlooked. Alternatively, would it be smarter to run a development server with Quarkus Quinoa, and then build an Nginx image for the frontend during the release stage?
Beta Was this translation helpful? Give feedback.
All reactions