Home »
MCQs »
FastAPI MCQs
Which of the following statement is correct (Related to CORS In FastAPI)?
20. Which of the following statement is correct?
- Cross-Origin Resource Sharing (CORS) is a circumstance in which a backend program running on a different client browser attempt to connect with a frontend using HTML code, but the frontend is in a different "origin" than the backend.
- Cross-Origin Resource Sharing (CORS) is a circumstance in which a frontend program running on a one-client browser attempts to connect with a backend using JavaScript code, but the backend is in a different "origin" than the frontend.
Answer: B) Cross-Origin Resource Sharing (CORS) is a circumstance in which a frontend program running on a one-client browser attempts to connect with a backend using JavaScript code, but the backend is in a different "origin" than the frontend.
Explanation:
Statement B is correct, Cross-Origin Resource Sharing (CORS) is a circumstance in which a frontend program running on a one-client browser attempts to connect with a backend using JavaScript code, but the backend is in a different "origin" than the frontend.