ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 8 - Professional Cloud Developer discussion

Report
Export

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's HTTP response so that only those browser and mobile sessions can submit metrics to the Cloud Function. Which response header should you add?

A.
Access-Control-Allow-Origin: *
Answers
A.
Access-Control-Allow-Origin: *
B.
Access-Control-Allow-Origin: https://*.example.com
Answers
B.
Access-Control-Allow-Origin: https://*.example.com
C.
Access-Control-Allow-Origin: https://fn.example.com
Answers
C.
Access-Control-Allow-Origin: https://fn.example.com
D.
Access-Control-Allow-origin: https://www.example.com
Answers
D.
Access-Control-Allow-origin: https://www.example.com
Suggested answer: D
asked 18/09/2024
Shauqi Naufaldy
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first