[Flask] CORS issue

Larry Martell larry.martell at gmail.com
Wed Nov 11 09:34:04 EST 2020


On Wed, Nov 11, 2020 at 9:30 AM Menno Holscher <mennoholscher at gmail.com> wrote:
>
> Op 09-11-2020 om 23:38 schreef Larry Martell:
> > I have a flask app that is deployed on many AWS hosts. All of them
> > work, except for 1, which gets this error:
> >
> > Access to XMLHttpRequest at 'https://apidse-foo.com/group/1011/arrays'
> > from origin 'https://dse-foo.com' has been blocked by CORS policy: No
> > 'Access-Control-Allow-Origin' header is present on the requested
> > resource.
>
> Isn't it just that apidse-foo.com is not a subdomain of dse-foo.com? I
> would expect api.dse-foo.com.

The issue was resolved -the CORS message was a red herring. The
problem was with the auto-scaling group registering the
instance.Thanks to all who replied.


More information about the Flask mailing list