Skip to content
Advertisement

Error when trying to connect to flask via localhost

I can across a script on github that send a Post request using flask.

I am trying run the script to establish a connection on my local host. But I get the below response

The method is not allowed for the requested URL.

JavaScript

Advertisement

Answer

you are trying to have only a root i.e “/” in your route.

Can you try with a site, something like below:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement