Essential s๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ ๐๐๐๐๐๐ซ๐ฌ ๐ข๐ง ๐๐๐ ๐
You can include various important information in the header for the server to understand.
๐๐๐๐๐ฉ๐ญ: ๐๐ฉ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง/๐ฃ๐ฌ๐จ๐ง - Specifies the data type we want from the server
๐๐จ๐ง๐ญ๐๐ง๐ญ-๐ญ๐ฒ๐ฉ๐: ๐๐ฉ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง/๐ฃ๐ฌ๐จ๐ง - Specifies the data type we want to send to server
๐๐ฎ๐ญ๐ก๐จ๐ซ๐ข๐ณ๐๐ญ๐ข๐จ๐ง - Used to pass the token
๐๐๐๐๐ฌ๐ฌ-๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ-๐๐ฅ๐ฅ๐จ๐ฐ-๐๐ซ๐ข๐ ๐ข๐ง - This header needs to be set up by the server to resolve CORS issues
๐-๐๐จ๐ง๐ญ๐๐ง๐ญ-๐๐ฒ๐ฉ๐-๐๐ฉ๐ญ๐ข๐จ๐ง๐ฌ: ๐ง๐จ๐ฌ๐ง๐ข๐๐ - Helps prevent cross-site scripting (XSS) attacks
๐๐จ๐ง๐ญ๐๐ง๐ญ-๐๐๐๐ฎ๐ซ๐ข๐ญ๐ฒ-๐๐จ๐ฅ๐ข๐๐ฒ - Allows you to restrict which resources (such as JavaScript, CSS, Images, etc.) can be loaded