Advertisement
swte

Basic auth for prebuild

Jan 23rd, 2020
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. add_filter('swift_performance_prebuild_headers', function($headers){
  2.     $user = 'YOUR_USERNAME';
  3.     $password = 'YOUR_PASSWORD';
  4.     $headers['Authorization'] = 'Basic ' . base64_encode( $user . ':' . $password );
  5.     return $headers;
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement