Skip to content

Commit

Permalink
Merge pull request #50070 from nextcloud/docs/http/cors-attribute
Browse files Browse the repository at this point in the history
docs(HTTP): Add proper docs for CORS attribute
  • Loading branch information
nickvergessen authored Jan 9, 2025
2 parents d3ec3de + 11feecf commit c515617
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 @@ -12,7 +12,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 c515617

Please sign in to comment.