Git Gateway for Netlify CMS not works with Auth Basic Protect

Hi,

I’m trying to protect my specific branch-deploy and deploy-preview based in context using the Basic Auth protection.

The Basic Auth works but when I try to enter to /admin for use Netlify CMS, the login form not works and the Git Gateway shows: “Git Gateway is not enabled” or “Git Gateway Error: [object Object]” but, if I disable the Basic Auth protection it works correctly.

I don’t know if my headers configuration are wrong or is a limitation.

[Headers Configuration]

/*
  Basic-Auth: user:password
  X-Frame-Options: DENY
  X-XSS-Protection: 1; mode=block
  cache-control: max-age=0
  cache-control: no-cache
  cache-control: no-store
  cache-control: must-revalidate

/static/*
  cache-control: public
  cache-control: max-age=360000

Any idea for solve it?

There’s a workaround posted by @verythorough here.

2 Likes

:wave: @coderdiaz feel free to ask in here or in the issue @tomrutgers linked if you have any trouble with that setup!

1 Like