Coder Social home page Coder Social logo

Failed to get CSRF token. about ajpy HOT 5 CLOSED

hypn0s avatar hypn0s commented on June 10, 2024
Failed to get CSRF token.

from ajpy.

Comments (5)

hypn0s avatar hypn0s commented on June 10, 2024

Hi,

Please describe the context, I cannot reproduce without it.

What tomcat version is running? Does the credentials are valid?

from ajpy.

Lpker-2006 avatar Lpker-2006 commented on June 10, 2024

Hi,

Please describe the context, I cannot reproduce without it.

What tomcat version is running? Does the credentials are valid?

I am sorry .

Tomcat version:Apache Tomcat / 8.5.45
OS:windows10
credential was set by me so it is right
''

from ajpy.

hypn0s avatar hypn0s commented on June 10, 2024

Hi,

I managed to reproduce the issue. Indeed I handle not well an error, I will make a commit to fix this.

However, the real issue here is that the manager is accessible only from localhost. Did you check that the manager interface can be accessed from where you ran the script? (The file webapps/manager/META-INF/context.xml must be edited to make the manager app accessible from other locations).

from ajpy.

Lpker-2006 avatar Lpker-2006 commented on June 10, 2024

However, the real issue here is that the manager is accessible only from localhost. Did you check that the manager interface can be accessed from where you ran the script? (The file webapps/manager/META-INF/context.xml must be edited to make the manager app accessible from other locations).

content from the context.xml:

Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127.\d+.\d+.\d+|::1|0:0:0:0:0:0:0:1"

although i cant really understand what it is but i guess it allow any IP to access the manager?
i am sorry my english is bad if you dont what i m saying is ok.
after all ,waiting for your commit.

from ajpy.

hypn0s avatar hypn0s commented on June 10, 2024

This line allows connections only from localhost. You can actually check using your browser and HTTP. The behavior is the same.

from ajpy.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.