[Flask] CORS issue

Larry Martell larry.martell at gmail.com
Mon Nov 9 17:42:37 EST 2020


Yes, I should have said, I am already using that.

from flask_cors import CORS
cors = CORS(application)

On Mon, Nov 9, 2020 at 5:41 PM Yahir Amat <yahir.amat at gmail.com> wrote:
>
> 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


More information about the Flask mailing list