You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(middleware): add basic auth and improve error handling 🔒
- Add BasicAuth middleware with user authentication
- Add error handling documentation to context object
- Add handleError method to Context class
- Add MDN reference link to CORS documentation
- Export BasicAuth in middleware index
- Refactor CORS middleware to use handleError with try-catch
- Refactor Handler to use ctx.handleError instead of handleResponse
- Refactor WebSocket middleware to use handleError
- Update documentation navigation and menu labels
- Update README with Basic Auth middleware entry
Copy file name to clipboardExpand all lines: docs/id/middleware/cors.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Middleware CORS
2
2
3
+
> **Referensi**: [MDN HTTP CORS Guide](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/CORS)
4
+
3
5
Middleware CORS (Cross-Origin Resource Sharing) menangani cross-origin requests dengan menambahkan header yang sesuai dan menangani preflight OPTIONS requests.
0 commit comments