[Flask] CORS issue

Yahir Amat yahir.amat at gmail.com
Mon Nov 9 17:40:53 EST 2020


There is a nice flask Cors plug-in that will allow you to set remote
origins to a specific address or a remote host. Or you can set anything you
want.

On Mon, Nov 9, 2020 at 5:39 PM Larry Martell <larry.martell at gmail.com>
wrote:

> 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.
>
> All are running Amazon Linux AMI 2018.03 and all are running the same
> flask code and JS code. What could be different on this 1 system from
> the others that is causing this? How can I debug this? I added this:
>
> logging.getLogger('flask_cors').level = logging.DEBUG
>
> But I did not get any debugging logging.
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/flask/attachments/20201109/981887ba/attachment.html>


More information about the Flask mailing list