You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Angular 4 for my application development. When I submit my form it's calling the browser URL for posting. Browser showing something like this:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>MethodNotAllowed</Code>
<Message>
The specified method is not allowed against this resource.
</Message>
<Method>POST</Method>
<ResourceType>OBJECT</ResourceType>
<RequestId>EDFDF7D3C3D38F</RequestId>
<HostId>
adasdsa$623y234
</HostId>
</Error>
I don't know what's the issue happening here. It's not calling the login function instead of this function call the form POST method is trying to post the browser URL (www.example.com/login) Registration also have to save form structure there also facing the same issue and this issue is only in AOT build.
Now using node v6.10.0 (npm v5.6.0)
Now using node v6.10.0 (npm v5.6.0)
I had the same error with ng build -prod. On ng build, it worked fine. After adding reference of "uglify-es": "^3.2.2" in package.json, issue is resolved now.
I am using Angular 4 for my application development. When I submit my form it's calling the browser URL for posting. Browser showing something like this:
My form and code:
Login function :
I don't know what's the issue happening here. It's not calling the login function instead of this function call the form POST method is trying to post the browser URL (www.example.com/login) Registration also have to save form structure there also facing the same issue and this issue is only in AOT build.
Now using node v6.10.0 (npm v5.6.0)
Now using node v6.10.0 (npm v5.6.0)
package.json file :
Please suggest!!
The text was updated successfully, but these errors were encountered: