I had the same problem. I suppose you are running nextcloud in a subdirectory of webroot (like I am)?
If yes: adding these lines to your nginx configuration right after the location blocks with the /.well-known/[...]
redirects made the warning in the admin page disappear (replace [NEXTCLOUD]
with the subdirectory where nextcloud resides):
location ~ /(ocm-provider|ocs-provider)/ {
return 301 $scheme://$host/[NEXTCLOUD]/$1/;
}
Don’t forget to tell nginx to reload the changed configuration afterwards with:
nginx -s reload