score:2
Accepted answer
Oh this is embarrassing...
The issue was this line
cookie.setSecure(!environment.acceptsProfiles(Profiles.of("dev")));
!environment.acceptsProfiles(Profiles.of("dev"))
was evaluating to true
and it was causing the cookie to be only passed if the connection is secure, which it wasn't because it was localhost. Mystery solved.
Source: stackoverflow.com
Related Query
- React App + Spring Boot - JWT auth token inside a cookie is not set in Chrome
- Django REST and React - JWT Cookie not getting set in browser but working with postman
- Right way to use JWT auth token in React Redux app
- Why in my react app JWT token not available on the first sign in?
- React-Router issues when serving React App with Spring Boot
- How to integrate a React webapp inside a spring boot Application with jar packaging
- Breakpoints not working debugging React app in Chrome through Visual Studio Code on Windows 10 and WSL2
- Profiling React app in Chrome DevTools - Profiling not supported
- Express Session Cookie Not Being Set when using React Axios POST Request
- How to set Auth token cookie from GraphQL Mutation with Apollo
- Dockerizing a React App: The app starts inside the container, but it not accessible from the exposed port
- Importing Quill to React app throws "React is not defined", "Unexpected token import"
- Route not defined react router and spring boot server
- Google Optimize not working with React App (no cookie set)
- Cookie is not get saved in chrome even after setting sameSite:'none' and secure: true for a MERN stack web app
- React router does not change view, but url is changed - App is load inside iframe
- How to set up firebase auth onAuthStateChanged() listener run when React app is loaded?
- Spring boot does not receive headers from react js
- My React app works fine in Chrome but not in firefox
- How do I apply SSL certs to my React app and Spring boot server?
- Vertical scroll not showing when height set to 100% in React app
- React react-router-dom private route not working when auth token is asynchronously loaded from cookies
- Deploying React App with Spring Boot REST API in AWS BeanStalk
- React app set proxy not working with docker compose
- Visual Studio Code Chrome Debugger doesn't set breakpoints inside generator function in React
- Private Routing is not getting set in React App
- How to set cookie with JWT token in ReactJS frontend using Node, Express, Axios
- How to store JWT token in cookie React fetch
- react js oauth2 login using react and spring boot shows auth window
- Adding jwt token to GET request not working in React
More Query from same tag
- Unhandled Rejection (TypeError): Cannot read property 'children' of undefined
- React Reflux error when running compiled JSX but not when using transformer
- Why doesn't work the React Link and NavLink?
- How to find latest 10 dates element from JSON object in React
- React onSubmit returning empty data
- Import error, can't find file - stackblitz React JS
- GraphQL query to filter GraphCMS posts
- How to cache clear when user logout in React JS
- Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()
- How do I create an object from data in React?
- Typing a custom react-redux connect function in Typescript
- How do you create a table from a list of objects using React?
- How to include data type validation on state - React Functional component
- HomePage after login.(different domains)
- Set Helmet body class when element is active
- push elements to object based on verifications
- create-react-app serve from nginx error loading assets
- RouterContext - Error: Invariant failed: You should not use <withRouter(App) /> outside a <Router>
- How do I pass props to child without the use of modules?
- React how to: replace only one component on click (dynamic UI)
- Set a certain interval for x-axis ticks in ApexCharts
- How to Pass Props to Another Component In a Javascript Map?
- material ui modal slow and even crash
- Material UI V5 Theming Customization
- TypeScript/React - Mapping over av array of objects
- React: Rendering second functional component when the first one is updated
- Passing props to Children component from Parent state- React Router
- How do you make a library truly tree-shakable with webpack?
- Meteor: accounts-ui Package
- React - How redirect to another component after making an request?