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

Improved firebase configuration by adding security headers(#735) #736

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

abhishekojha06
Copy link

Related Issues

#735

this code works for deploying and hosting SPAs built with
frontend frameworks on Firebase Hosting, while handling
multiple environments and including essential security headers in development.

@ymaheshwari1 ymaheshwari1 changed the title improved -Resolved different firebase hosting target (#735) Improved firebase configuration by adding security headers(#735) Oct 20, 2024
Copy link
Contributor

@ymaheshwari1 ymaheshwari1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @abhishekojha06

Please check the comments below.

@@ -25,7 +25,25 @@
"rewrites": [ {
"source": "**",
"destination": "/index.html"
}]
} ],
"headers": [ {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the same entry in the other two objects as well (prod and uat).
Also please update the formatting and indentation changes to follow this files pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants