Description
Hello, currently I'm using symfony serve
command for local development which starts web server for symfony app binded to 127.0.0.1:8000 (and other random port) but whenever I'm making request from react app which is on 127.0.0.1:3000 I'm getting CORS error.
I know that there are bundles to fix this issue but the reason I don't want to install them is that I don't really need CORS on production and don't really want to add additional logic like if APP_ENV == dev { add cors headers }
it's just for local development, so I thought maybe the ideal place to handle this issue is actually symfony web server itself since it's used specifically for local development?
Additional option like symfony serve --disable-cors
would be perfect solution, or you guys think it's not the right place to handle it?