CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 111: Google Cloud Professional Cloud Developer

You have an application that uses an HTTP Cloud Function to process user activity from both desktop browser and mobile application clients. This function will serve as the endpoint for all metric submissions using HTTP POST. Due to legacy restrictions, the function must be mapped to a domain that is separate from the…

Nội dung câu hỏi

You have an application that uses an HTTP Cloud Function to process user activity from both desktop browser and mobile application clients. This function will serve as the endpoint for all metric submissions using HTTP POST. Due to legacy restrictions, the function must be mapped to a domain that is separate from the domain requested by users on web or mobile sessions. The domain for the Cloud Function is https://fn.example.com. Desktop and mobile clients use the domain https://www.example.com. You need to add a header to the function'sHTTP response so that only those browser and mobile sessions can submit metrics to the Cloud Function. Which response header should you add?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. Access-Control-Allow-Origin: *
  2. B. Access-Control-Allow-Origin: https://*.example.com
  3. C. Access-Control-Allow-Origin: https://fn.example.com
  4. D. Access-Control-Allow-origin: https://www.example.com — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề