there is a UrlRewriting.config in the config-folder. We also have a config for iis-rules in the root-folder. Maybe you find your problem there.
But I can't remember what the problem was for me.
I remember I inherited from the wrong APi-Controller. For now, I am inheriting from UmbracoApiController and allow the method to be called by anonymous by adding this attribute above the method
[AllowAnonymous]
We had also a IIS rule that block all Backend-Urls, so I have to adust this also to make it public. The UmbracoApiController is inside the Umbraco Backend (everything under /umbraco).
The requested resource does not support HTTP method 'GET'
Hi,
my API-method is decorated with
But I still get "The requested resource does not support HTTP method 'GET'" message, if i request the url in the browser?
Can someone please help me?
Thank you,
Nadine
Hey Nadine,
Have you got any redirects that do things like force lowercase or remove trailing slashes?
I've normally seen that error message when a request is getting redirected so it could be worth checking that :-)
Thanks,
Nik
Hi Nik,
Can you please give more details on how you can check this? I am trying to login, after moving the website to a different server, and I cannot.
I have seen that in the console I get the same message as Nadine.
Can you help?
Thanks
there is a UrlRewriting.config in the config-folder. We also have a config for iis-rules in the root-folder. Maybe you find your problem there.
But I can't remember what the problem was for me.
I remember I inherited from the wrong APi-Controller. For now, I am inheriting from UmbracoApiController and allow the method to be called by anonymous by adding this attribute above the method
We had also a IIS rule that block all Backend-Urls, so I have to adust this also to make it public. The UmbracoApiController is inside the Umbraco Backend (everything under /umbraco).
is working on a reply...