CorsConfig.java, Other commented things

 avatar
unknown
plain_text
2 years ago
1.5 kB
6
Indexable
/*
package com.kotak.collection.reporting.configuration;

import lombok.extern.log4j.Log4j2;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

*/
/** Configuration for CORS. *//*

@Configuration
@EnableWebMvc
@Log4j2
public class CorsConfig implements WebMvcConfigurer {
  @Override
  public void addCorsMappings(final CorsRegistry registry) {
    log.debug("Inside addCorsMappings");
    registry
        .addMapping("/**")
        .allowedOriginPatterns(
            "http://localhost:3000",
            "https://dev-collection-dashboard.kotak.internal",
            "http://localhost:3001")
        .allowedMethods("*")
        .allowedHeaders("*")
        .allowCredentials(true)
        .maxAge(3600);
    log.debug("Exit addCorsMappings");
  }
}
*/


//             Hardcode
      //      final String recordingUrl1 =
      //          "s3://s3-callrecordingdata-dev/P_0_CSG153502229_202306071526_9313836715.wav";
      //      final URI recordingUri = new URI(recordingUrl1);

log.info("objectKey {}", objectKey);
log.info("Presigner {}", presigner);
log.info("getObjectRequest {}", getObjectRequest);
log.info("getObjectPresignRequest {}", getObjectPresignRequest);
log.info("presignedGetObjectRequest {}", presignedGetObjectRequest);
Editor is loading...
Leave a Comment