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

Allow all cross-origin requests in development stage #205

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Set CORS Allow-Origin Header to `*` in stage `development`.
- This improves Dogu development but has no effects in production.

## [v7.0.5.1-5] - 2024-08-20
### Fixed
Expand Down
7 changes: 6 additions & 1 deletion resources/etc/cas/config/cas.properties.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -271,4 +271,9 @@ cas.authn.oauth.code.numberOfUses=1
# Access Token (Session) is valid for 1 day (= 86000 seconds)
cas.authn.oauth.accessToken.timeToKillInSeconds=86000
cas.authn.oauth.accessToken.maxTimeToLiveInSeconds=86000
########################################################################################################################
########################################################################################################################

{{ if eq (.GlobalConfig.GetOrDefault "stage" "production") "development"}}
cas.http-web-request.cors.enabled=true
cas.http-web-request.cors.allow-origin-patterns=*
{{ end }}