From a740bf589938b9cd71a55edd34eee8e67e452b66 Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Tue, 2 May 2023 01:42:55 +0200 Subject: [PATCH] Update README.md adjust notes --- examples/rxresume/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/rxresume/README.md b/examples/rxresume/README.md index ed80c8a..48b4364 100644 --- a/examples/rxresume/README.md +++ b/examples/rxresume/README.md @@ -4,10 +4,8 @@ https://github.com/AmruthPillai/Reactive-Resume # Notes -Make sure that you expose both the client and server container behind the same (sub)domain. +Make sure that you expose both the client and server container behind the same (sub)domain, which is properly resolvable. Otherwise, you'll either receive DNS or CORS errors, as the domain cannot be resolved by the containers properly or since the Same Origin Policy (SOP) will prevent access from Domain A (client) to Domain B (server). So let both containers run on the same domain and tell your reverse proxy (here traefik) that the server container will handle all /api requests. -Otherwise, you'll receive CORS errors, as the Same Origin Policy (SOP) will prevent access from Domain A (client) to Domain B (server). - -So let both run on the same domain and tell your reverse proxy (here traefik) that the server container will handle all /api requests. +If PDF export keeps failing, you may want to enable the `extra_hosts` definition in the client's Docker Compose service definition. Specify your domain name and your server's IP address where Traefik is listening on TCP/80 and TCP/443. See this GitHub issue [here](https://github.com/AmruthPillai/Reactive-Resume/issues/721#issuecomment-1530550167). If you use Nginx Proxy Manager as reverse proxy, may have a read [here](https://github.com/AmruthPillai/Reactive-Resume/issues/721#issuecomment-1405283786).