An application cannot be accessed on Mac Operating System

Hello,
The Gateway in Mac Operating System is preventing me to open application from an unknown developer. How can I configure this to access all applications? Please suggest me the best solution. Any help would be appreciated.
Thanks.

Choosing “Anywhere” makes your Mac less secure.
Instead you can allow an individual application from an Unknown developer by control-clicking its icon and selecting open.
