Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
294 views
in Technique[技术] by (71.8m points)

reactjs - How to specify http headers for react lazy loading request

I am using lazy routes in react app.

Before call for next react chunk is fired from client to server, I would like to specify user token in this request http header and verify on server before chunk is served.

How can specify any header for http request?

question from:https://stackoverflow.com/questions/65937834/how-to-specify-http-headers-for-react-lazy-loading-request

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...