This fixes a poorly-written pair of rack layers, the CORS layer and the Auth layer, which separately seem to have been causing errors during overlapping requests. There is only one instance of each rack layer; use of an instance-variable to pass data is therefore not going to work; consequently I have rewritten these layers to pass data explicitly between methods.
This fixes a poorly-written pair of rack layers, the CORS layer and the Auth layer, which separately seem to have been causing errors during overlapping requests. There is only one instance of each rack layer; use of an instance-variable to pass data is therefore not going to work; consequently I have rewritten these layers to pass data explicitly between methods.
I also fixed a couple of logging bugs.