Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Netlify CMS within main site #125

Open
WhiteHoodHacker opened this issue Jul 24, 2023 · 0 comments
Open

Integrate Netlify CMS within main site #125

WhiteHoodHacker opened this issue Jul 24, 2023 · 0 comments
Labels
cms Requires changes to CMS backend development Related to development work feature New feature or request

Comments

@WhiteHoodHacker
Copy link
Member

Doing so would allow us to use our custom React components for better previews when editing content.

Will require some hackery with the Netlify site where the Netlify Identity is enabled (cms.sigpwny.com) to allow the base site sigpwny.com hosted on Cloudflare Pages to interact with Netlify Identity (and git gateway). CORS will be an issue since the Netlify site returns:

Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *

The fix would be to set a _headers file on the Netlify site with Access-Control-Allow-Origin: https://sigpwny.com.

The Netlify CMS config.yml probably needs to be updated to include the site_domain: cms.sigpwny.com field for the backend option. Reference: https://preview-auth-doc--netlify-cms-www.netlify.app/docs/authentication-backends/#options

@WhiteHoodHacker WhiteHoodHacker added feature New feature or request development Related to development work cms Requires changes to CMS backend labels Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cms Requires changes to CMS backend development Related to development work feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant