Voyage II: Configuring the router

I have followed the steps to add Authorization in the monolith/index.js and run the router with the configuration. My problem occurs when I try to Test the Authorization headers. Having added the headers to apollo studio as “Authorization” and “Bearer user-1” and run the test for hostListings I am facing the below error. Sorry for the screen shot I am working on a separate computer.

Hey there @Jacqueline_Walsh! It looks like the headers aren’t being passed over correctly. Can you send a screenshot of the Headers section in the Explorer? Would you also be able to show your code? Hope we can troubleshoot this together!

Hi Michelle thanks for the reply. You are absolutely correct, somehow my headers had been commented out, not sure how that happened but once I uncommented them the code now works. Thanks for the help :smiley:

1 Like