Learn About Operating Systems In-Depth ๐ฏ
For many types of software engineers it is important to understand the fundamentals of operating systems.
โโโ
Course Link๐๐ป
https://youtu.be/yK1uBHPdp30
โค3
๐ก๐ผ๐ฑ๐ฒ.๐ท๐ ๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ ๐ค๐๐ฒ๐๐๐ถ๐ผ๐ป๐ โ ๐๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ ๐๐ผ ๐๐
๐ฝ๐ฒ๐ฟ๐ ๐
1. What is Node.js?
2. Why is Node.js single-threaded?
3. What is the V8 engine?
4. What is the Event Loop?
5. Difference between Node.js and JavaScript in the browser.
6. What are global objects in Node.js?
7. What is npm?
8. What is package.json?
9. What is module.exports?
10. Difference between require and import.
11. What is callback?
12. What is asynchronous programming?
13. What is Promise?
14. Difference between Promise and callback.
15. What is async/await?
16. What is REPL?
17. What is middleware?
18. What is Express.js?
19. What is REST API?
20. How do you handle errors in Node.js?
โโโ
21. What is non-blocking I/O?
22. How does the Event Loop work internally?
23. Difference between process.nextTick and setImmediate.
24. What are streams in Node.js?
25. Types of streams.
26. What is Buffer?
27. What is clustering?
28. How do you handle multiple requests?
29. How do you manage environment variables?
30. What is CORS?
31. How do you secure Node.js APIs?
32. What is JWT authentication?
33. How do you connect Node.js with databases?
34. Difference between SQL and NoSQL in Node.js apps.
35. What is Mongoose?
36. How do you handle file uploads?
37. What is rate limiting?
38. How do you implement pagination?
39. How do you handle logging?
40. How do you test Node.js applications?
โโโ
41. Explain Node.js architecture.
42. How do you scale Node.js applications?
43. What is horizontal vs vertical scaling?
44. How do you handle CPU-intensive tasks?
45. How do you design microservices in Node.js?
46. How do you handle inter-service communication?
47. What is message queue usage in Node.js?
48. How do you implement caching?
49. What is Redis used for?
50. How do you handle memory leaks?
51. How do you monitor Node.js applications?
52. How do you implement CI/CD for Node.js?
53. How do you secure APIs at enterprise level?
54. How do you handle API versioning?
55. How do you manage secrets?
56. What are Node.js performance bottlenecks?
57. How do you implement graceful shutdown?
58. What are common Node.js anti-patterns?
59. How do you design fault-tolerant systems?
60. When should you NOT use Node.js?
๐ข ๐๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ / ๐๐๐ป๐ถ๐ผ๐ฟ ๐๐ฒ๐๐ฒ๐น
1. What is Node.js?
2. Why is Node.js single-threaded?
3. What is the V8 engine?
4. What is the Event Loop?
5. Difference between Node.js and JavaScript in the browser.
6. What are global objects in Node.js?
7. What is npm?
8. What is package.json?
9. What is module.exports?
10. Difference between require and import.
11. What is callback?
12. What is asynchronous programming?
13. What is Promise?
14. Difference between Promise and callback.
15. What is async/await?
16. What is REPL?
17. What is middleware?
18. What is Express.js?
19. What is REST API?
20. How do you handle errors in Node.js?
โโโ
๐ก ๐ ๐ถ๐ฑ-๐๐ฒ๐๐ฒ๐น (๐ฎโ๐ฑ ๐ฌ๐ฒ๐ฎ๐ฟ๐ ๐๐ ๐ฝ๐ฒ๐ฟ๐ถ๐ฒ๐ป๐ฐ๐ฒ)
21. What is non-blocking I/O?
22. How does the Event Loop work internally?
23. Difference between process.nextTick and setImmediate.
24. What are streams in Node.js?
25. Types of streams.
26. What is Buffer?
27. What is clustering?
28. How do you handle multiple requests?
29. How do you manage environment variables?
30. What is CORS?
31. How do you secure Node.js APIs?
32. What is JWT authentication?
33. How do you connect Node.js with databases?
34. Difference between SQL and NoSQL in Node.js apps.
35. What is Mongoose?
36. How do you handle file uploads?
37. What is rate limiting?
38. How do you implement pagination?
39. How do you handle logging?
40. How do you test Node.js applications?
โโโ
๐ต ๐ฆ๐ฒ๐ป๐ถ๐ผ๐ฟ / ๐๐ฟ๐ฐ๐ต๐ถ๐๐ฒ๐ฐ๐ ๐๐ฒ๐๐ฒ๐น
41. Explain Node.js architecture.
42. How do you scale Node.js applications?
43. What is horizontal vs vertical scaling?
44. How do you handle CPU-intensive tasks?
45. How do you design microservices in Node.js?
46. How do you handle inter-service communication?
47. What is message queue usage in Node.js?
48. How do you implement caching?
49. What is Redis used for?
50. How do you handle memory leaks?
51. How do you monitor Node.js applications?
52. How do you implement CI/CD for Node.js?
53. How do you secure APIs at enterprise level?
54. How do you handle API versioning?
55. How do you manage secrets?
56. What are Node.js performance bottlenecks?
57. How do you implement graceful shutdown?
58. What are common Node.js anti-patterns?
59. How do you design fault-tolerant systems?
60. When should you NOT use Node.js?
โค7
ุณุคุงู ุงูุชุฑฺคูู ู
ุญูู ุดููุชูู ุจุณ ููุฑุชู ุณููุฉ ุฌุฏูุง...
.
.
ุงููุงุชุฌ ููููู 8 .. ูุชุนุงู ุฃูููู ูููุ
ุฎูููุง ููุณู ุงูุณุคุงู ุฅูู ุฌุฒุฆูู:
๐ ุงูุฌุฒุก ุงูุฃูู .. ุงูู Array ุงูุตุบูุฑุฉุ ููู ุฏู ุญู ุงูุณุคุงูุ ุงูู comma ููุง ูุชุนู ู Evaluation ููู Array ููุชุฑุฌุน ุชุงูู ุฑูู ููู 3ุ ุฏุงูู ูุง ุจุชุฑุฌุน ุงูุฑูู ุงููู ุนูู ุงููู ูู ุฃู ุงูุฑูู ุงูุฃุฎูุฑ.
[1, 3] => 3
๐ ุงูุฌุฒุก ุงูุซุงูู .. ุงูู Array ุงููุจูุฑุฉุ ูุฏู Array ุนุงุฏูุฉ ุฌุฏูุง ุจูุชุนู ู ุนูููุง Access ู ู ูุจู ุงูููู ุฉ ุงููู ุทูุนุช ู ู ุงูู Array ุงูุตุบูุฑุฉ ุงููู ูู 3ุ ูุนูู ุงูู ูุถูุน ูููุตู ูููุจูู ุจุงูุดูู ุฏู:
[2, 4, 6, 8, 10][3] => 8
ูู ุงูุฏููุง ูุณู ู ูุถุญุชุด ู ู ูู ุชูุฑุฃ ุฃูุชุฑ ุนู ุงููComma Operator ู ู ููุง:
๐ฐ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_operator
๐ฐ https://www.javascripttutorial.net/javascript-comma-operator
.
.
ุงููุงุชุฌ ููููู 8 .. ูุชุนุงู ุฃูููู ูููุ
ุฎูููุง ููุณู ุงูุณุคุงู ุฅูู ุฌุฒุฆูู:
๐ ุงูุฌุฒุก ุงูุฃูู .. ุงูู Array ุงูุตุบูุฑุฉุ ููู ุฏู ุญู ุงูุณุคุงูุ ุงูู comma ููุง ูุชุนู ู Evaluation ููู Array ููุชุฑุฌุน ุชุงูู ุฑูู ููู 3ุ ุฏุงูู ูุง ุจุชุฑุฌุน ุงูุฑูู ุงููู ุนูู ุงููู ูู ุฃู ุงูุฑูู ุงูุฃุฎูุฑ.
[1, 3] => 3
๐ ุงูุฌุฒุก ุงูุซุงูู .. ุงูู Array ุงููุจูุฑุฉุ ูุฏู Array ุนุงุฏูุฉ ุฌุฏูุง ุจูุชุนู ู ุนูููุง Access ู ู ูุจู ุงูููู ุฉ ุงููู ุทูุนุช ู ู ุงูู Array ุงูุตุบูุฑุฉ ุงููู ูู 3ุ ูุนูู ุงูู ูุถูุน ูููุตู ูููุจูู ุจุงูุดูู ุฏู:
[2, 4, 6, 8, 10][3] => 8
ูู ุงูุฏููุง ูุณู ู ูุถุญุชุด ู ู ูู ุชูุฑุฃ ุฃูุชุฑ ุนู ุงููComma Operator ู ู ููุง:
๐ฐ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_operator
๐ฐ https://www.javascripttutorial.net/javascript-comma-operator
โค3
ู
ุฌู
ูุนุฉ ู
ุตุงุฏุฑ ูุชุณุงุนุฏู ูู ุงูุชุญุถูุฑ ูุงูุชุฑฺคูู ุงูู Node.js ๐
.
.
๐ NodeJS Interview Questions
https://lnkd.in/dpGdHdhR
๐ Backend Interview Questions and Answers related to Node JS, Golang/Go, Express JS, and MongoDB
https://lnkd.in/dmtwX3JT
๐ 100 Must-Know Node.js Interview Questions
https://lnkd.in/dGaHhK4x
๐ Node.js Basics
https://lnkd.in/dvGW_BrP
๐ 52 Node.js Interview Questions for JavaScript Developers
https://lnkd.in/duwZBCV6
๐ Top 100+ Node.js Interview Questions and Answers
https://lnkd.in/djWnnnQQ
๐ Top 100 Node.js interview questions and answers
https://lnkd.in/dSvJrw2n
๐ Top 30+ Node.js Interview Questions
https://lnkd.in/dRE98yTe
๐ Node Interview Questions and Answers โ Beginner Level
https://lnkd.in/dfPtxPpc
๐ Top Node.js Interview Questions You Must Prepare
https://lnkd.in/duzZ6RP4
๐ Top 50 Node.js Interview Questions and Answers
https://lnkd.in/d-U-xNEa
.
.
๐ NodeJS Interview Questions
https://lnkd.in/dpGdHdhR
๐ Backend Interview Questions and Answers related to Node JS, Golang/Go, Express JS, and MongoDB
https://lnkd.in/dmtwX3JT
๐ 100 Must-Know Node.js Interview Questions
https://lnkd.in/dGaHhK4x
๐ Node.js Basics
https://lnkd.in/dvGW_BrP
๐ 52 Node.js Interview Questions for JavaScript Developers
https://lnkd.in/duwZBCV6
๐ Top 100+ Node.js Interview Questions and Answers
https://lnkd.in/djWnnnQQ
๐ Top 100 Node.js interview questions and answers
https://lnkd.in/dSvJrw2n
๐ Top 30+ Node.js Interview Questions
https://lnkd.in/dRE98yTe
๐ Node Interview Questions and Answers โ Beginner Level
https://lnkd.in/dfPtxPpc
๐ Top Node.js Interview Questions You Must Prepare
https://lnkd.in/duzZ6RP4
๐ Top 50 Node.js Interview Questions and Answers
https://lnkd.in/d-U-xNEa
โค2๐1
ู
ุง ูู ุงูู CORS ู ููู ูุนู
ูุ What is CORS - CSRF Attacks - SOP - Preflight Request
https://youtu.be/0t4xGM1IMgo
https://youtu.be/0t4xGM1IMgo
YouTube
ู
ุง ูู ุงู CORS ู ููู ูุนู
ูุ What is CORS - CSRF Attacks - SOP - Preflight Request
ู
ุง ูู ุงู CORS ู ููู ูุนู
ูุ What is CORS - CSRF Attacks - SOP - Preflight Request
========================
ุดุฑุญ ู ูุตู ุนู ุฃุญุฏ ู ูุงุถูุน ุงู web security ูููููุฉ ุญู ุงูุฉ ู ููุนู ู ู ูุฌู ุงุช cross site request forgery ุจุงุณุชุฎุฏุงู ุณูุงุณุฉ CORS. ูุชุนู ู ูู ููู ููู ูู ูู ููู ูุงุฌู ูู ุงุณุชุบูุงูโฆ
========================
ุดุฑุญ ู ูุตู ุนู ุฃุญุฏ ู ูุงุถูุน ุงู web security ูููููุฉ ุญู ุงูุฉ ู ููุนู ู ู ูุฌู ุงุช cross site request forgery ุจุงุณุชุฎุฏุงู ุณูุงุณุฉ CORS. ูุชุนู ู ูู ููู ููู ูู ูู ููู ูุงุฌู ูู ุงุณุชุบูุงูโฆ
โค3
ู
ู ุถู
ู ุงูู
ุตุทูุญุงุช ุงูู
ูู
ุฉ ูู ู
ุฌุงู ุงูููุจ ๐ฏ
.
.
ุฎูุงู ุฑุญูุชู ูู ู ุฌุงู ุงูููุจ ุฃููุฏ ู ุฑ ุนููู ู ุตุทูุญ ุงูู CORSุ ุฃู ูุงุฌูุชู ู ุดููุฉ ุจุณุจุจ ู ูุถูุน ุงูู CORS ูู ุงูู ุชุตูุญ. ุชุนุงู ูุฏุฑุฏุด ุดููุฉ...
โโโ
ุจุจุณุงุทุฉ ุงูู CORS ุงุฎุชุตุงุฑ ูู Cross-Origin Resource Sharing
๐ ูู ุงูุฃูู ูุฏู ุฎูููุง ูุนุฑู ูุนูู ุฅูู Originุ
ุงูู "Origin" ูู ุงูุฏูู ูู (domain) ุฃู ุงููุทุงู ุงููู ุงูู ููุน ุฃู ุงูุณูุฑูุฑ ุจุชุงุนู ุดุบุงู ุนููู. ุจูุจูู ุนุจุงุฑุฉ ุนู ุงูู "Protocol" (ุฒู HTTP ุฃู HTTPS) + ุงุณู ุงูุฏูู ูู (ุฒู example.com) + ุงูุจูุฑุช (ูู ู ุฎุชูู ุนู ุงูู 80 ูู HTTP ุฃู 443 ูู HTTPS).
โโโ
โก๏ธ ููู ุงูู ุดููุฉุ
ูู ุฃูุช ุดุบุงู ุนูู ู ููุน ู ุนูู ูุนุงูุฒ ุงูู ููุน ุจุชุงุนู ูุทูุจ ุจูุงูุงุช ุฃู resources (ุฒู JSON ุฃู ู ููุงุช) ู ู ุณูุฑูุฑ ุชุงููุ ุงูุณูุฑูุฑ ุงูุชุงูู ุฏู ูุงุฒู ูุจูู ู ู ููุณ ุงูู origin ุจุชุงุนูุ ูุนูู ููุณ ุงูุฏูู ููุ ููุณ ุงูุจุฑูุชููููุ ูููุณ ุงูุจูุฑุช.
ูุฏู ุญุงุฌุฉ ุงุณู ูุง Same-Origin Policyุ ุงูุณูุงุณุฉ ุฏู ู ุนู ููุฉ ุฃุณุงุณูุง ุนูุดุงู ุชุญู ู ุงูู ุณุชุฎุฏู ูู ู ู ุฃู ุทูุจุงุช ุถุงุฑุฉ ู ู ูู ุชุฌู ู ู ู ูุงูุน ุชุงููุฉ ุบูุฑ ู ูุซููุฉ.
ุจุณ ูู ุจุนุถ ุงูุญุงูุงุชุ ุฃูุช ูู Developer ุจุชุจูู ู ุญุชุงุฌ ุชุนู ู ุทูุจุงุช ููุณูุฑูุฑุงุช ุงููู ู ุด ู ู ููุณ ุงูู origin ุจุชุงุนูุ ุฒู ูู ุง ูููู ุนูุฏู Frontend ุดุบุงู ุนูู ุฏูู ูู ู ุนูู ูAPI ุฃู Backend ุดุบุงููู ุนูู ุฏูู ูู ุฃู ุจูุฑุช ู ุฎุชูู.
โโโ
ููุง ุจูู ููุฌู ุฏูุฑ ุงูู CORS ๐
ุงูู Cross-Origin Resource Sharing (CORS) ูู ุงูุญู ุงููู ุจูุณู ุญ ููู ูุงูุน ุฅููู ูุทูุจูุง ุจูุงูุงุช ุฃู ู ููุงุช ู ู ุณูุฑูุฑุงุช ุชุงููุฉ ุจู ุฎุชูู ุงูู origins ุจุดูู ุขู ูุ ุจู ุนูู ุฅูู ุชูุฏุฑ ุชุชุฎุทู ุงูู Same-Origin Policy ูุชุนู ู ุทูุจุงุช ูุณูุฑูุฑุงุช ุชุงููุฉ ุทุงูู ุง ุงูุณูุฑูุฑ ุฏู ุจููุจู ุฅูู ูุชุนุงู ู ู ุน ุงูู ููุน ุจุชุงุนู.
โโโ
๐ ุฅุฒุงู ุงูู CORS ุจุชุดุชุบูุ
ูู ุง ู ููุนู ุจูุทูุจ ุจูุงูุงุช ู ู ุณูุฑูุฑ ุชุงูู ู ุฎุชูู ุนู ุงูู origin ุจุชุงุนูุ ุงูุณูุฑูุฑ ุงููู ุนููู ุงูู resource ุงููู ุฃูุช ุจุชุทูุจูุง ูู ุงููู ุจููุฑุฑ ุฅุฐุง ูุงู ุงูุทูุจ ุฏู ู ุณู ูุญ ุฃู ูุง.
ุงูุณูุฑูุฑ ุจูุฑุฏ ุนูู ุงูุทูุจ ู ู ุฎูุงู ุงูู (headers) ุงููู ุจูุฑุฌุนูุง ู ุน ุงูู response.
ูุงุญุฏ ู ู ุฃูู ุงูู headers ุฏู ูู:
ุงููู ุจูุญุฏุฏ ุงูู origins ุงููู ู ุณู ูุญ ูููุง ุชุทูุจ ุจูุงูุงุช ู ู ุงูุณูุฑูุฑ ุฏู. ูู ุงูู origin ุจุชุงุน ู ููุนู ู ูุฌูุฏ ูู ุงูููู ุฉ ุจุชุงุนุช ุงูู header ุฏูุ ุงูุณูุฑูุฑ ููุณู ุญ ุจุชูููุฐ ุงูุทูุจ ูููุฑุฌุนูู ุงูู response. ููู ููุ ุงูุทูุจ ููุชู ูุน ูููุฌููู error ู ู ููุน CORS ูู ุงูู ุชุตูุญ.
โโโ
๐ ูู ุงู ููู Headers ุชุงููุฉ ุฒู:
- ุงูู Access-Control-Allow-Methods: ุงููู ุจุชุญุฏุฏ ุฃููุงุน ุงูุทูุจุงุช ุงููู ู ุณู ูุญ ููู ุชุนู ููุง (GET, POST, PUT, DELETE...).
- ุงูู Access-Control-Allow-Headers: ุงููู ุจุชุญุฏุฏ ุงูู headers ุงููู ู ุณู ูุญ ููู ุชุจุนุชูุง ูู ุงูุทูุจุงุช.
- ุงูู Access-Control-Allow-Credentials: ูู ุงูุทูุจ ู ุญุชุงุฌ ูุจุนุช Cookies ุฃู ุจูุงูุงุช ู ุนููุฉุ ูุงุฒู ุงูู header ุฏู ูุจูู ู ูุฌูุฏ ูู ุธุจูุท ุนูู true.
โโโ
ููููู ุงููู ููู ุฎูุฑ ๐ฟ
.
.
ุฎูุงู ุฑุญูุชู ูู ู ุฌุงู ุงูููุจ ุฃููุฏ ู ุฑ ุนููู ู ุตุทูุญ ุงูู CORSุ ุฃู ูุงุฌูุชู ู ุดููุฉ ุจุณุจุจ ู ูุถูุน ุงูู CORS ูู ุงูู ุชุตูุญ. ุชุนุงู ูุฏุฑุฏุด ุดููุฉ...
โโโ
ุจุจุณุงุทุฉ ุงูู CORS ุงุฎุชุตุงุฑ ูู Cross-Origin Resource Sharing
๐ ูู ุงูุฃูู ูุฏู ุฎูููุง ูุนุฑู ูุนูู ุฅูู Originุ
ุงูู "Origin" ูู ุงูุฏูู ูู (domain) ุฃู ุงููุทุงู ุงููู ุงูู ููุน ุฃู ุงูุณูุฑูุฑ ุจุชุงุนู ุดุบุงู ุนููู. ุจูุจูู ุนุจุงุฑุฉ ุนู ุงูู "Protocol" (ุฒู HTTP ุฃู HTTPS) + ุงุณู ุงูุฏูู ูู (ุฒู example.com) + ุงูุจูุฑุช (ูู ู ุฎุชูู ุนู ุงูู 80 ูู HTTP ุฃู 443 ูู HTTPS).
โโโ
โก๏ธ ููู ุงูู ุดููุฉุ
ูู ุฃูุช ุดุบุงู ุนูู ู ููุน ู ุนูู ูุนุงูุฒ ุงูู ููุน ุจุชุงุนู ูุทูุจ ุจูุงูุงุช ุฃู resources (ุฒู JSON ุฃู ู ููุงุช) ู ู ุณูุฑูุฑ ุชุงููุ ุงูุณูุฑูุฑ ุงูุชุงูู ุฏู ูุงุฒู ูุจูู ู ู ููุณ ุงูู origin ุจุชุงุนูุ ูุนูู ููุณ ุงูุฏูู ููุ ููุณ ุงูุจุฑูุชููููุ ูููุณ ุงูุจูุฑุช.
ูุฏู ุญุงุฌุฉ ุงุณู ูุง Same-Origin Policyุ ุงูุณูุงุณุฉ ุฏู ู ุนู ููุฉ ุฃุณุงุณูุง ุนูุดุงู ุชุญู ู ุงูู ุณุชุฎุฏู ูู ู ู ุฃู ุทูุจุงุช ุถุงุฑุฉ ู ู ูู ุชุฌู ู ู ู ูุงูุน ุชุงููุฉ ุบูุฑ ู ูุซููุฉ.
ุจุณ ูู ุจุนุถ ุงูุญุงูุงุชุ ุฃูุช ูู Developer ุจุชุจูู ู ุญุชุงุฌ ุชุนู ู ุทูุจุงุช ููุณูุฑูุฑุงุช ุงููู ู ุด ู ู ููุณ ุงูู origin ุจุชุงุนูุ ุฒู ูู ุง ูููู ุนูุฏู Frontend ุดุบุงู ุนูู ุฏูู ูู ู ุนูู ูAPI ุฃู Backend ุดุบุงููู ุนูู ุฏูู ูู ุฃู ุจูุฑุช ู ุฎุชูู.
โโโ
ููุง ุจูู ููุฌู ุฏูุฑ ุงูู CORS ๐
ุงูู Cross-Origin Resource Sharing (CORS) ูู ุงูุญู ุงููู ุจูุณู ุญ ููู ูุงูุน ุฅููู ูุทูุจูุง ุจูุงูุงุช ุฃู ู ููุงุช ู ู ุณูุฑูุฑุงุช ุชุงููุฉ ุจู ุฎุชูู ุงูู origins ุจุดูู ุขู ูุ ุจู ุนูู ุฅูู ุชูุฏุฑ ุชุชุฎุทู ุงูู Same-Origin Policy ูุชุนู ู ุทูุจุงุช ูุณูุฑูุฑุงุช ุชุงููุฉ ุทุงูู ุง ุงูุณูุฑูุฑ ุฏู ุจููุจู ุฅูู ูุชุนุงู ู ู ุน ุงูู ููุน ุจุชุงุนู.
โโโ
๐ ุฅุฒุงู ุงูู CORS ุจุชุดุชุบูุ
ูู ุง ู ููุนู ุจูุทูุจ ุจูุงูุงุช ู ู ุณูุฑูุฑ ุชุงูู ู ุฎุชูู ุนู ุงูู origin ุจุชุงุนูุ ุงูุณูุฑูุฑ ุงููู ุนููู ุงูู resource ุงููู ุฃูุช ุจุชุทูุจูุง ูู ุงููู ุจููุฑุฑ ุฅุฐุง ูุงู ุงูุทูุจ ุฏู ู ุณู ูุญ ุฃู ูุง.
ุงูุณูุฑูุฑ ุจูุฑุฏ ุนูู ุงูุทูุจ ู ู ุฎูุงู ุงูู (headers) ุงููู ุจูุฑุฌุนูุง ู ุน ุงูู response.
ูุงุญุฏ ู ู ุฃูู ุงูู headers ุฏู ูู:
Access-Control-Allow-Origin
ุงููู ุจูุญุฏุฏ ุงูู origins ุงููู ู ุณู ูุญ ูููุง ุชุทูุจ ุจูุงูุงุช ู ู ุงูุณูุฑูุฑ ุฏู. ูู ุงูู origin ุจุชุงุน ู ููุนู ู ูุฌูุฏ ูู ุงูููู ุฉ ุจุชุงุนุช ุงูู header ุฏูุ ุงูุณูุฑูุฑ ููุณู ุญ ุจุชูููุฐ ุงูุทูุจ ูููุฑุฌุนูู ุงูู response. ููู ููุ ุงูุทูุจ ููุชู ูุน ูููุฌููู error ู ู ููุน CORS ูู ุงูู ุชุตูุญ.
โโโ
๐ ูู ุงู ููู Headers ุชุงููุฉ ุฒู:
- ุงูู Access-Control-Allow-Methods: ุงููู ุจุชุญุฏุฏ ุฃููุงุน ุงูุทูุจุงุช ุงููู ู ุณู ูุญ ููู ุชุนู ููุง (GET, POST, PUT, DELETE...).
- ุงูู Access-Control-Allow-Headers: ุงููู ุจุชุญุฏุฏ ุงูู headers ุงููู ู ุณู ูุญ ููู ุชุจุนุชูุง ูู ุงูุทูุจุงุช.
- ุงูู Access-Control-Allow-Credentials: ูู ุงูุทูุจ ู ุญุชุงุฌ ูุจุนุช Cookies ุฃู ุจูุงูุงุช ู ุนููุฉุ ูุงุฒู ุงูู header ุฏู ูุจูู ู ูุฌูุฏ ูู ุธุจูุท ุนูู true.
โโโ
ููููู ุงููู ููู ุฎูุฑ ๐ฟ
โค15