To allow CORS for all domains, the server should set the Access-Control-Allow-Origin header to ________.
- *
- localhost
- www.example.com
- Same-Origin
To allow CORS for all domains, the server should set the Access-Control-Allow-Origin header to *, which means any domain is allowed to access the resources. This should be done with caution as it can pose security risks if used improperly.
Loading...
Related Quiz
- What is the first line of defense against injection attacks in web applications?
- To install all the dependencies listed in the package.json file, the ______ command should be used.
- How can you create a private variable inside a JavaScript function?
- You are designing a real-time data processing system where data needs to be transformed before being sent to another service. How would you implement streams in Node.js to ensure smooth data transformation and transmission?
- What is the difference between process.nextTick() and setImmediate() in Node.js?