Computer Blocking CORS OPTIONS Request

前端 未结 2 1672
攒了一身酷
攒了一身酷 2021-02-20 11:23

This is driving me crazy! I\'m trying to work with Amazon S3 CORS requests and they are not working on my computer. It seems that my computer is blocking or ignoring the OPTIONS

2条回答
  •  名媛妹妹
    2021-02-20 12:02

    The problem is the Web Security module of Cisco AnyConnect. In our case, we cannot uninstall AnyConnect or make any changes to it (large corporate setting where the change would be really expensive/time consuming). Fortunately, there seem to be two solutions that do work.

    1. Cisco only blocks ports 80 and 8080 (other ports seem fine).
    2. Cisco allows secure https requests.

    So, if you have control over the server, either put it on a different port or use https and your users will be alright.

提交回复
热议问题