Hello! I am in the process of setting up my Staging and Production Environments for my workspace. My APIs require different types of Authorization per environment.
Is there any way to dynamically change the Authorization Type for a collection based on the Environment selected?
My setup:
Staging environment I set setup a pre-request script to set headers for my entire collection and set my Authorization Type to “NO AUTH” since auth is passed in my headers/pre-request:
Production = When I swap environment to Production, I want the authorization type for my collection to change from “NO AUTH” to “BASIC AUTH” and then I would want to supply a set of username/password variables.