Example of how to use CORS with Cloudflare access to pass credentials to a backend.
Replace all .community.cyberjake.xyz
with your domain.
Need the following:
Cloudflare Policies:
Cloudflare tunnel token with public hostnames as shown below.
Edit the cors settings in backend/index.js to match your origin.
Edit the server_name
in frontend/nginx.conf to match your domain.
docker compose up --build
Wait for the tunnel to connect and then visit https://<your domain>/
to see the frontend and watch the console for the response from the backend.
View the demo at https://frontend.community.cyberjake.xyz/.
- It does require to verify with an email address to access the site.
- I am able to see emails that sign up, so please don't use any sensitive information. You can use a temporary email service like Temp Mail to get a temporary email address.