Code Monkey home page Code Monkey logo

spring-security-csrf-token-interceptor's People

Contributors

aditzel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-security-csrf-token-interceptor's Issues

Interceptor is too chatty

Interceptor currently does a HEAD on every POST, making it unnecessarily chatty. Update so that it caches value on initial load, then only when the token value changes.

Interceptor forces url to "/"

The intercepter should allow to configure the XMLHttpRequest url in order to make it flexible to use.
I'm currently using an EAR project with two WARs inside, and only one is being developed with Angular JS and Spring Security and I can't set the url for the correct context.

Unknown provider: csrfProvider

Hi,

I followed the readme to configure the module but I'm getting an "Unknown provider: csrfProvider" error. I looked at the source and it doesn't seem to be creating any providers. Am I missing anything?

Bower install fetches older version

Hello,

When you install with bower the latest tagged version (0.1.5) is retrieved.
When I tried to run .configure with csrfProvider I get an error that this provider is not available. Which is correct, because it did not exist yet in 0.1.5.

When I manually try to retrieve 0.2.0 it says:

bower ENORESTARGET No tag found that was able to satisfy 0.2.0

Additional error details:
Available versions: 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0

I think the only thing you need to do is create a new tag?
Thanks!

Not reading updated CSRF token after authentication to the server.

Thank you for creating this utility.

I am using Spring Security 3.2 which has CSRF enabled by default. I was unable to see the CSRF tokens in the Chrome Dev Tools/ Console and so I added a filter to let the server send the CSRF tokens in header. (Not sure if creating filter is the right approach, as I did not see any other way to show the CSRF token in Chrome Dev Tools)

My problem is, for the landing page I am getting one CSRF token. After I authenticate and login to the application and make any other service call a new CSRF token is generated in response, but this code is intercepting the call only once in the beginning and the new CSRF token that was generated by the server after authentication is not being read anymore.

Synchronous XMLHttpRequest on the main thread is deprecated

Hello,

I'm using your AngularJS interceptor and I got the following warning message when I debug in the browser (chrome).
"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/. It refers to the line 29 in 'src/spring-security-csrf-token-interceptor.js' :
xhr.open('head', '/', false);

If I change false to true, the warning message disappears. I don't really understand it.

Do you know something about that ?

many thanks

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.