If you are using Webpack, check out dev server proxy. Note the changeOrigin property. You can create a minimal webpack project with just the dev server config and run it from terminal.
For CORS issues though, we don't do this. We use CORS in production (static assets on different subdomain from API), so it made sense to make it a config parameter and use it in dev too.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you are using Webpack, check out dev server proxy. Note the
changeOrigin
property. You can create a minimal webpack project with just the dev server config and run it from terminal.For CORS issues though, we don't do this. We use CORS in production (static assets on different subdomain from API), so it made sense to make it a config parameter and use it in dev too.