Do not propagate headers on HTTP redirects

前端 未结 2 1796
既然无缘
既然无缘 2021-01-05 14:51

I have files hosted on Amazon S3, and I\'d like to download them after a treatment in my app. This app view requires the HTTP Authorization header to proceed. Here is the pr

2条回答
  •  太阳男子
    2021-01-05 15:12

    Is your S3 file path on the same domain as your /file/xxx? That would explain why the Authorization header is being sent, presumably. If you have your S3 hosted on a different domain to the app view, then I would assume the Authorization header would not be sent to the S3 domain (as HTTP Authorization is per-domain).

提交回复
热议问题