Task: Demonstrate Why fetch() with mode: 'no-cors' Strips Custom Headers
Task: Demonstrate Why fetch() with mode: 'no-cors' Strips Custom Headers: a task in Terminal-Lego-15k (Harbor dataset). When using the Fetch API with mode: 'no-cors' , the browser restricts which headers can be sent. Custom headers like X-My-Custom-Header and Authorization are stripped because…
The task
When using the Fetch API with `mode: 'no-cors'`, the browser restricts which headers can be sent. Custom headers like `X-My-Custom-Header` and `Authorization` are stripped because they are not CORS-safelisted request headers. This task requires you to create a working demonstration that shows the correct way to send…
Part of PrimeIntellect/Terminal-Lego-15k.