How to disable Track HTTP Method on Amazon Cloud Front

0

Hello,

I have been trying to disable the HTTP method TRACK from CloudFront distributions and I haven't found any place where I can turn it off. Also, I saw that the CloudFront is not supposed to support that HTTP method, but when a request comes to the CloudFront for some reason it has been responding as a normal GET request. Could someone help me?

質問済み 2年前1079ビュー
2回答
0

You can choose to serve HTTPS only or redirect HTTP to HTTPS options as Viewer Protocol Policy. Go to your Distribution -> Edit Behaviour ->Viewer protocol policy-> Select Redirect HTTP to HTTPS or whichever suits your need.

AWS
回答済み 2年前
0

And if you want to allow or block certain HTTP method e.g. GET then it depends on your origin. if it is S3 bucket then you can use CORS configuration to allow only certain HTTP methods.

more info and example CORS policy here - https://docs.aws.amazon.com/AmazonS3/latest/userguide/ManageCorsUsing.html#cors-example-2

Let me know if you have any other origin configured.

AWS
回答済み 2年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ