WebDav Cors police

Hi All,

Since a 3 / 4 weeks ago the connection between my web application and your server has been rejected by the CORS policy.

I didn’t change anything in my application.
I’m using the WebDav to connect and upload or download files.

Example error in the browser:

Access to XMLHttpRequest at ‘https://xxx/remote.php/dav/files/xxx/1403/testimg.jpg’ from origin ‘https://localhost:44341’ 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.

Your server is rejecting the request because the cross domain is not allowed.
What I need to do for the connection works again?

In my code I have Cors police created for the domain “https://xxx.woelkli.me”.

services.AddCors(o => o.AddPolicy("StorageProvider", builder =>
            {
                builder.WithOrigins("https://xxx.woelkli.me")
                       .AllowAnyMethod()
                       .AllowAnyHeader();
            }));

Thank you.

The Solution was install the application webAppPassword in the woelkli security administration and write the domains that will be allowed to connect via WebDav.

Try asking your hosting provider for help. This would be their responsibility.