Skip to content

Commit 11feecf

Browse files
committed
docs(HTTP): Add proper docs for CORS attribute
Signed-off-by: provokateurin <[email protected]>
1 parent bbba8b4 commit 11feecf

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)