Category: reactjs

How to set and send Cookies in Symfony while the front-end is in ReactJS?

I am programming an application that uses ReactJs for the front-end in localhost:3001 and Symfony for the back-end localhost:3000, and to enable cross origin communication I use “cors-bundle” in Symfony. Now I want to create a Cookie when a user…

What is best for making a blog on a react website? Frameworks, CMS, Flat File CMS

What I am looking for I am looking for something to help me make and maintain blog posts on a react website. Of course I could just write every single blog post as a separate component or page but that…

React – share state beetween separated React Apps possible?

I wrote a React-App and now I want to implement some Tab-Navigation. The problem is, my react app is integrated in a Symfony-Project that uses Twig templates. So my React-App lives in templates/dashboard/index.html.twig: {% block content %} <div id=”react-app”></div> {%…

404 error/No Access-Control-Allow-Origin header message in Symfony 4 + React app. How to make the routing work?

I have created simple application and would like to deploy it on a server. I am going through this for the first time – so no previous experiences I could benefit from. The problem in general: The app has implemented…

Webpack error : sockjs-node error and net::ERR_SSL_PROTOCOL_ERROR and [WDS] Disconnected

i get this error when i go on https://localhost:8000/ Hello Test !! Edit me in assets/js/app.js GET https://localhost:8080/sockjs-node/info?t=1578173001337 net::ERR_SSL_PROTOCOL_ERROR sockjs.js:1606 [WDS] Disconnected! client:172 GET https://localhost:8080/sockjs-node/info?t=1578173002702 net::ERR_SSL_PROTOCOL_ERROR sockjs.js:1606 GET https://localhost:8080/sockjs-node/info?t=1578173005086 net::ERR_SSL_PROTOCOL_ERROR sockjs.js:1606 GET https://localhost:8080/sockjs-node/info?t=1578173009503 net::ERR_SSL_PROTOCOL_ERROR sockjs.js:1606 … my package.json : {…