To configure globally, annotate with @Bean.
CorsConfigurationSource corsConfig() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(List.of(| <?xml version="1.0" encoding="UTF-8"?> | |
| <project> | |
| <!-- ... other project settings ... --> | |
| <profiles> | |
| <profile> | |
| <id>macosx_arm</id> | |
| <activation> | |
| <os> |
| FROM amazoncorretto:21-al2023-headless | |
| RUN yum install -y tar | |
| RUN curl -o maven.tgz https://dlcdn.apache.org/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz \ | |
| && tar -C /opt -zxf maven.tgz \ | |
| && ln -s /opt/apache-maven-3.9.6/bin/mvn /usr/bin/mvn \ | |
| && rm -f maven.tgz | |
| RUN yum remove -y tar |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>CSS Layout</title> | |
| <style> | |
| body { | |
| font-family: Arial, Helvetica, sans-serif; | |
| } |