Commit c0b23522 authored by Radheshhathwar's avatar Radheshhathwar
Browse files

CORS changes

-Removed properties and added headers
Showing with 17 additions and 16 deletions
+17 -16
......@@ -53,7 +53,8 @@ public class ExamsAndAdmissionsApplication {
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedOriginPatterns("*")
.maxAge(3600)
.allowedHeaders("*");
.allowedHeaders("*")
.exposedHeaders("Authorization");
}
@Autowired
......
......@@ -8,21 +8,21 @@ spring.jpa.properties.hibernate.format_sql=true
spring.jpa.show-sql=false
spring.jpa.hibernate.ddl-auto=update
#Cors
# Allow requests from any origin
spring.servlet.cors.allowed-origins=*
# Allowed HTTP methods
spring.servlet.cors.allowed-methods=GET,POST,PUT,DELETE,OPTIONS
# Allowed HTTP headers
spring.servlet.cors.allowed-headers=Origin,Content-Type,Accept,Authorization
# Exposed headers in the response
spring.servlet.cors.exposed-headers=Authorization
# Max age of the CORS preflight request cache
spring.servlet.cors.max-age=3600
##Cors
## Allow requests from any origin
#spring.servlet.cors.allowed-origins=*
#
## Allowed HTTP methods
#spring.servlet.cors.allowed-methods=GET,POST,PUT,DELETE,OPTIONS
#
## Allowed HTTP headers
#spring.servlet.cors.allowed-headers=Origin,Content-Type,Accept,Authorization
#
## Exposed headers in the response
#spring.servlet.cors.exposed-headers=Authorization
#
## Max age of the CORS preflight request cache
#spring.servlet.cors.max-age=3600
#Storage Service properties
storage.key={{storageKey}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment