Access to XMLHttpRequest

Hello everyone

I’m trying to let my APP connect to the local nextcloud server, but i am getting this error :

Access to XMLHttpRequest at ‘https://localserver/apps/oauth2/authorize’ from origin ‘http://localhost:54231’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

Can someone please point me into the right direction ?

Thank You !

I found this issue on Github I think is relevant: CORS support in login v2 and OAuth2 flow · Issue #34898 · nextcloud/server · GitHub

1 Like

Thank You !

Yes indeed.
Hope someone has managed to solve this , i simply can’t connect to my local nextcloud box sadly