Open stephenliu1944 opened 6 years ago
me two
me too
me too
@stephenliu1944 you should set headers Access-Control-Allow-Credentials
proxyRes.headers['Access-Control-Allow-Credentials'] = true
proxyRes.headers['Access-Control-Allow-Headers'] = 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With , yourHeaderFeild'
proxyRes.headers['Access-Control-Allow-Methods'] = 'PUT, POST, GET, DELETE, OPTIONS'
I want to rewrite request cookie using following code, but didn't work.
And is there a way to find API of proxyReq Object?