moodle-webservice_restful icon indicating copy to clipboard operation
moodle-webservice_restful copied to clipboard

Working with rest behind haproxy

Open joekutos opened this issue 3 years ago • 1 comments

I am trying to work with restful behind haproxy version 2.4 but i am getting the error

{"exception":"moodle_exception","errorcode":"noauthheader","message":"No Authorization header found in request sent to Moodle"}

This is probably because Haproxy is not forwarding the header to moodle!! Tried adding the header in the backend configuration but still not getting the solution

http-request set-header Authorization "HHHhdasdashdahs88832422hhththadas"

This doesnt seem to solve the issue. A solution to this would be appreciated

joekutos avatar Feb 15 '22 06:02 joekutos