You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add configurable CORS support for the OCS Share API #37716
I think is useful to be able to operate with data from Nextcloud from other websites cms such as moodle, drupal, wp's while using different domains. The app webappassword lets use the DAV resources, it uses the sabre pluggable system to modify the response checking against a list of allowed domains. But I cannot find a way to use share api from different domain as files_sharing app is not providing neither the necessary preflight OPTIONS route, nor the @CORS annotation in the relevant controller methods. Also using it will allow every domain to gain access, so I think it may open security breach in sites.
Adding an application to be used as frontend to set the allowed origins, it's in separated repo at: Communia/cors_origin_filter_settings . (also reported in PR)
Hi, yes, but it has some limitations, as it only covers webdav and with a commit I have recently contributed it also adds share api support.
But as I said it has some limitations, it needs to reimplement every controller methods of the desired endpoint, so we(me and main developer) are agree in digital-blueprint/webapppassword#61 (comment) that a nextcloud native way of offfering this will be better.
That's why I work on this proposal
Activity
aleixq commentedon Apr 28, 2023
Adding an application to be used as frontend to set the allowed origins, it's in separated repo at: Communia/cors_origin_filter_settings . (also reported in PR)
szaimen commentedon Apr 28, 2023
Hi, did you know about this app?
https://apps.nextcloud.com/apps/webapppassword
aleixq commentedon Apr 28, 2023
Hi, yes, but it has some limitations, as it only covers webdav and with a commit I have recently contributed it also adds share api support.
But as I said it has some limitations, it needs to reimplement every controller methods of the desired endpoint, so we(me and main developer) are agree in digital-blueprint/webapppassword#61 (comment) that a nextcloud native way of offfering this will be better.
That's why I work on this proposal
aleixq commentedon Apr 29, 2023
Just note also that PR #37896 together with https://github.com/Communia/cors_origin_filter_settings would also make easier an enhanced filepicker such as one asked for in #2028 and #3131 , or the implemented one in https://github.com/julien-nc/nextcloud-webdav-filepicker that needs curl to workaround the cors problem (see more in https://github.com/julien-nc/nextcloud-webdav-filepicker#create-nextcloud-share-links )
[-]Cors origin allowed list check[/-][+]CORS origin allowed list check[/+][-]CORS origin allowed list check[/-][+]Add configurable CORS support for the OCS Share API[/+]