Complete the CORS Header
Fill in the Blank Medium
Question
Fill in the blank with the header value that allows requests from any origin.
Code
Access-Control-Allow-Origin: ___
Hint
It is a single character that means 'everything'.
Explanation
The value '*' tells the browser that any origin is allowed to make cross-origin requests to this resource. For production APIs with credentials, you should specify the exact allowed origin instead of '*', as '*' does not work with credentials: 'include'.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.