Realworld: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Created on 27 Aug 2020  路  12Comments  路  Source: gothinkster/realworld

Most helpful comment

Sorry for the delay here! I can confirm that one of the instances was returning errors inconsistently and wasn't being removed from the load balancer. The instance has been replaced and the servers are processing requests properly now. Apologies for the inconvenience, we'll be improving our infrastructure to prevent something like this from happening in the future.

All 12 comments

Same for me. Any updates here?

Same

Same.I guess maybe the service had down

@anishkny hi, could you please help us out with the problem?

Same. In most requests these errors

Same. Any updates?

Can reproduce issue. Navigating to https://conduit.productionready.io/api/tags in browser causes Error 502 Bad gateway. Sometimes works from command line curl but not 100%. Looking...

Working on the issue right now. if anyone is a CORS expert and wants to help ping me please.

I'm not an expert but can gladly help. From what I see there 2 problems:

  1. 502 on requests randomly like server dies because of some backend error
  2. CORS problems on requests. You need to have such header in every answer on server:
    'Access-Control-Allow-Origin: *'
    'Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE, OPTIONS'
    'Access-Control-Allow-Headers: Origin, Content-Type, Autorization'

Sorry for the delay here! I can confirm that one of the instances was returning errors inconsistently and wasn't being removed from the load balancer. The instance has been replaced and the servers are processing requests properly now. Apologies for the inconvenience, we'll be improving our infrastructure to prevent something like this from happening in the future.

Thanks for the fix. Looks good now.

Thanks Albert

Was this page helpful?
0 / 5 - 0 ratings

Related issues

humboldtux picture humboldtux  路  6Comments

marcosfede picture marcosfede  路  6Comments

EricSimons picture EricSimons  路  7Comments

LiesbethW picture LiesbethW  路  3Comments

anishkny picture anishkny  路  7Comments