Skip to content

Problem with Health Check code 500

0

error caused when i origin my backend and my backend return code 500 if it doesn't set origin it return check ok and response 200 what can i do for my ELB turn serve to ok

2 Answers
0

To resolve this:

  1. Configure CORS on your backend:
    • Set the Access-Control-Allow-Origin header to include the domain of your frontend. You can use * as a wildcard to allow all domains, but be cautious with this approach.
    • Also, set Access-Control-Allow-Methods and Access-Control-Allow-Headers to specify which methods and headers are allowed.
  2. Update your ELB (Elastic Load Balancer) settings:
    • Ensure that the ELB is configured to forward the Origin header from the client request to your backend.
    • You might need to add a new rule or update an existing one in your ELB's listener settings.

Related document links:

EXPERT
answered 10 months ago
EXPERT
reviewed 10 months ago
0

it's not helping me, origin i set up already, but your check health can touch server with header origin which allowed

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.