mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
docs: Add comments referencing the Solid spec where relevant
Also some minor changes to completely match the spec there.
This commit is contained in:
@@ -22,6 +22,11 @@ interface SimpleCorsOptions {
|
||||
|
||||
/**
|
||||
* Handler that sets CORS options on the response.
|
||||
*
|
||||
* Solid, §7.1: "A data pod MUST implement the CORS protocol [FETCH] such that, to the extent possible,
|
||||
* the browser allows Solid apps to send any request and combination of request headers to the data pod,
|
||||
* and the Solid app can read any response and response headers received from the data pod."
|
||||
* Full details: https://solid.github.io/specification/protocol#cors-server
|
||||
*/
|
||||
export class CorsHandler extends HttpHandler {
|
||||
private readonly corsHandler: RequestHandler;
|
||||
|
||||
Reference in New Issue
Block a user