Skip to content

Commit c515617

Browse files
Merge pull request #50070 from nextcloud/docs/http/cors-attribute
docs(HTTP): Add proper docs for CORS attribute
2 parents d3ec3de + 11feecf commit c515617

File tree

1 file changed

+3
-1
lines changed
  • lib/public/AppFramework/Http/Attribute

1 file changed

+3
-1
lines changed

lib/public/AppFramework/Http/Attribute/CORS.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
use Attribute;
1313

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

0 commit comments

Comments
 (0)