Closed Bug 1189700 Opened 9 years ago Closed 4 years ago

Better beginner's documentation for CORS

Categories

(Developer Documentation Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: cmills, Unassigned)

References

Details

After recently learning some Nodejs and using it to build a server to serve Push Messages, it struck me that our CORS documentation contains good reference material, but it could really do with an ultra simple, practical tutorial to show a beginner how to send a CORS request successfully.

It is not that obvious that you only need to include the CORS headers on the server-side, and the pre-flight request from the client determines whether the server can accept cross-domain requests, etc.

Including examples in JavaScript with a couple of different simple server-side options would be great, e.g. JS only (with node on the server), JS + Python server.

My example is at https://github.com/chrisdavidmills/push-api-demo.
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.