Skip to content

Commit

Permalink
docs(HTTP): Add proper docs for CORS attribute
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Jan 9, 2025
1 parent 353866f commit d64c72b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/public/AppFramework/Http/Attribute/CORS.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
use Attribute;

/**
* Attribute for controller methods that can also be accessed by not logged-in user
* Attribute for controller methods that can also be accessed by other websites.
* See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS for an explanation of the functionality and the security implications.
* See https://docs.nextcloud.com/server/latest/developer_manual/digging_deeper/rest_apis.html on how to implement it in your controller.
*
* @since 27.0.0
*/
Expand Down

0 comments on commit d64c72b

Please sign in to comment.