How to set X-Frame-Options and/or Content-Security-Policy to specific URI with Nginx?
I have this server running on a Docker Container with Nginx. The Nginx follows the structure of this repo: h5bp/server-configs-nginx.
Conection NginX and Reactfrontend
I’m working on a project for my degree. The next step is that I want to build a connection between my React app and the Nginx server. Both are in separate Docker containers. My current status is that when I open localhost, the request is forwarded to the right index.html in the frontend. However, I only get a white page displayed because it can’t find the main.jsx anymore. Since I’m new to this topic and don’t really know my way around, I wanted to ask you for advice. Thank you in advance.
Nginx redirecting app to localhost/app instead of localhost:3000/app
I am running my react app on nginx server via Docker.
Reactjs running on docker image nginx ( env variable )
I have a reactjs app that I run on docker with nginx
this is the final steps of my dockerfile