Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
After publishing my v14.1.1 site to my sever I can't Save or Save & Publish anything. I get a red notification: "ApiError Method Not Allowed".
I have the DeliveryAPI enabled. All of my Content is there in Umbraco...but when I try to access the DeliveryAPI: https://mydomainhere/umbraco/delivery/api/v2/content/
I get: {"total":0,"items":[]}
I've looked in the log file. I don't see anything that looks like it coincides with this error.
Figured it out thanks to this 9 yo forum post: https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/60809-405-Method-Not-Allowed-when-login-attempt
I had this rewrite rule in my web.config:
<rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite>
Per @FrankNeitzel I modified my rewrite to this and everything is hunky dory.
<rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> <add input="{REQUEST_URI}" pattern="^.*/umbraco" negate="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite>
it couldn't solve. I still get same problem. I get this error form PUT,DELETE,POST requests.
finally that solved my problem
<location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\NicheLifes.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" /> </system.webServer> </location> <system.webServer> <rewrite> <rules> <rule name="HTTP to HTTPS redirect" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true" /> <add input="{REQUEST_URI}" pattern="^.*/umbraco" negate="true" /> </conditions> <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" /> </rule> </rules> </rewrite> <modules runAllManagedModulesForAllRequests="false"> <remove name="WebDAVModule" /> </modules> <httpProtocol> <customHeaders> <clear /> <add name="Access-Control-Expose-Headers " value="WWW-Authenticate"/> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Methods" value="GET, POST, OPTIONS, PUT, PATCH, DELETE" /> <add name="Access-Control-Allow-Headers" value="accept, authorization, Content-Type" /> <remove name="X-Powered-By" /> </customHeaders> </httpProtocol> <security> <requestFiltering> <requestLimits maxAllowedContentLength="524288000"/> </requestFiltering> </security> </system.webServer>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ApiError Method Not Allowed v14.1.1
After publishing my v14.1.1 site to my sever I can't Save or Save & Publish anything. I get a red notification: "ApiError Method Not Allowed".
I have the DeliveryAPI enabled. All of my Content is there in Umbraco...but when I try to access the DeliveryAPI: https://mydomainhere/umbraco/delivery/api/v2/content/
I get: {"total":0,"items":[]}
I've looked in the log file. I don't see anything that looks like it coincides with this error.
Figured it out thanks to this 9 yo forum post: https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/60809-405-Method-Not-Allowed-when-login-attempt
I had this rewrite rule in my web.config:
Per @FrankNeitzel I modified my rewrite to this and everything is hunky dory.
it couldn't solve. I still get same problem. I get this error form PUT,DELETE,POST requests.
finally that solved my problem
is working on a reply...