If you set a required header for accessing your swagger.json, then accessing it using a browser is going to be challenging.
You can manually add a header in the network console after initiating a first call, or not use the browser to load it. From: <[email protected]> on behalf of Yaseen Foflonker <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Thursday, 2 March 2017 at 5:13 To: Swagger <[email protected]> Subject: Error when browsing to swagger.json file in Browser Hi there, I am getting the following error {"message":"No authorization header provided!"} when trying to view my swagger.json file in the browser. It works fine for Swagger.UI since the header is being set on my index.html page. In this case im browsing to http://localhost:8008/api/swagger.json and getting an error. Am i missing something? How do i set the headers in this scenario? Kind Regards! -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
