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

Bugfix for caching headers #74

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Conversation

evgeniy-scherbina
Copy link
Collaborator

No description provided.

@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review November 16, 2023 18:32
accessControlAllowOriginValue := config.GetAccessControlAllowOriginValue(r.Host)
if accessControlAllowOriginValue != "" {
if w.Header().Get("Access-Control-Allow-Origin") == "" && accessControlAllowOriginValue != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

add some comments so future devs will take less time to understand this line then it took us to fix please

Copy link
Contributor

Choose a reason for hiding this comment

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

also good to update docs for cache for how it interacts with cors headers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, I'll do just want to make sure, it's correct fix

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@evgeniy-scherbina evgeniy-scherbina merged commit 3011414 into main Nov 16, 2023
4 checks passed
@evgeniy-scherbina evgeniy-scherbina deleted the yevhenii/cache-bugfix branch November 16, 2023 18:36
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