HTTP basic authentication through CXF interceptor not working

前端 未结 2 639
别跟我提以往
别跟我提以往 2021-02-08 12:23

I\'m having some trouble setting the HTTP Authorization header for a web service request using Apache CXF. I have my client setup through spring:



        
2条回答
  •  长发绾君心
    2021-02-08 13:08

    I have almost exactly the same setup as yours but I am putting my interceptor in the PRE_PROTOCOL phase. So far, I have not experienced any problem. You might try that.

    I think POST_PROTOCOL is just too late because too much has already been written to the stream.

提交回复
热议问题