ff4j-samples | Out-of-the-box working samples for FF4J | Frontend Framework library
kandi X-RAY | ff4j-samples Summary
kandi X-RAY | ff4j-samples Summary
Out-of-the-box working samples for FF4J.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ff4j-samples
ff4j-samples Key Features
ff4j-samples Examples and Code Snippets
Community Discussions
Trending Discussions on ff4j-samples
QUESTION
I did the following steps and I don't understand why I did not succeed on the last one :
- clone this repository
- start spring boot app
- browse to http://localhost:5002/ff4j-web-console/features
- login with
user/user
(also triedadmin/admin
andsuperuser/superuser
) - try to create new feature but got a 403 error message
I want to have the console (+api) protected by a basic authentication but I want to be able to do anything when I'm logged. How can I achieve this ? Am I missing something on how security works between spring and ff4j ?
...ANSWER
Answered 2020-Jun-30 at 18:19Using Spring Security with Java configuration, CSRF protection is enabled by default. In this context, if you make an Ajax request to a REST endpoint using POST method, you will get a csrf token missing error.
To fix it, in class SecurityConfig
changeconfigure
method with the following. The code has been updated in github as well.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ff4j-samples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page