Skip to content

Commit

Permalink
Merge pull request #261 from micromata/Release-8.1-SNAPSHOT
Browse files Browse the repository at this point in the history
Release 8.1 snapshot
Flyway stuff (old table removed, missed migrations int -> bigint added).
CORS simplified.
Employee: weeklyWorkingHours are now time-dependent.
  • Loading branch information
kreinhard authored Jan 19, 2025
2 parents f12fc11 + 6a5214a commit ef664a3
Show file tree
Hide file tree
Showing 43 changed files with 801 additions and 225 deletions.
3 changes: 2 additions & 1 deletion ToDo.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
==== Aktuell:

- History-Entries für EmployeeValidityAttrDO werden nicht ordentlich geschrieben.
- JCR: Tool for removing or recovering orphaned nodes.
- Favoriten bei Scriptausführung für Parameter.
- KI-Anteil in Zeitberichten
- Viewpage für user für non-admins.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public void addCorsMappings(CorsRegistry registry) {
PFSpringConfiguration.logCorsFilterWarning(log);
// Allow maximum access for development on localhost
registry.addMapping("/**")
.allowedOriginPatterns("*") // Allow all origins (this is the most permissive)
// '*' doesn't work for modern browsers, use 'http://localhost:3000' instead:
.allowedOrigins(pfSpringConfiguration.getCorsAllowedOrigins())
.allowedMethods("*") // Allow all HTTP methods (GET, POST, PUT, DELETE, OPTIONS, etc.)
.allowedHeaders("*") // Allow all headers
.allowCredentials(true) // Allow credentials (cookies, authorization headers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ public void onStartup(ServletContext sc) throws ServletException {
securityHeaderFilter.addMappingForUrlPatterns(null, false, "/*");
securityHeaderFilter.setInitParameter(SecurityHeaderFilter.PARAM_CSP_HEADER_VALUE, cspHeaderValue);

if (pfSpringConfiguration.getCorsFilterEnabled()) {
log.warn("************* Enabling CorsPreflightFilter for development. *************");
FilterRegistration.Dynamic corsPreflightFilter = sc.addFilter("CorsPreflightFilter", CorsPreflightFilter.class);
corsPreflightFilter.addMappingForUrlPatterns(null, false, "/*");
}

/*
* Redirect orphaned links from former versions of ProjectForge (e. g. if link in e-mails were changed due to migrations or refactoring.
*/
Expand Down

This file was deleted.

Loading

0 comments on commit ef664a3

Please sign in to comment.