Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I think .WithMethods is a bit tricky - it is modifying the CORS policies, not allowing PUT per se.
Are you using IIS to host your app, or something else?
When trying to update the visitor groups I get 'method not allowed'.
In Startup I clearly allow 'PUT'
services.AddCors(options => { options.DefaultPolicyName = defaultPolicyName; options.AddDefaultPolicy(policy => policy .WithMethods("GET", "PUT", "POST", "DELETE", "OPTIONS") .WithHeaders("Origin", "Authorization", "Accept", "Accept-Language", "Accept", "Content-Type") .WithExposedContentDeliveryApiHeaders() .WithExposedContentDefinitionApiHeaders()); }); // ... AND ... app.UseRouting(); app.UseCors(); app.UseAuthentication(); ... app.UseEndpoints...
Is there some configuration that I missed?