How to forge the referer in the request header when react is developed locally

I haven"t been in contact with react for long, and then I directly use creat-react-app to develop a project to practice my hands. Now I find that the interface of the project on the request line is restricted by referer. The request plug-in uses axios,. How can I forge referer and host

?

referer cannot be forged unless the front end of the


referer front end is forged through a backend reverse proxy. Only the backend can forge
. At present, my processing method is to use cors , The backend sets response headers Access-Control-Allow-Origin to access online or other people's local services


use this chrome plug-in


to change host, Configure the domain name to be the same as your online domain

Menu