Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
examsAndAdmissions
Commits
c0b23522
Commit
c0b23522
authored
1 year ago
by
Radheshhathwar
Browse files
Options
Download
Patches
Plain Diff
CORS changes
-Removed properties and added headers
parent
e21cab6b
github/fork/ruksana2808/filter_bug_examCycle
bug_fix_question_paper_upload
development
fee_changes
1 merge request
!142
CORS changes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/tarento/upsmf/examsAndAdmissions/ExamsAndAdmissionsApplication.java
+2
-1
...smf/examsAndAdmissions/ExamsAndAdmissionsApplication.java
src/main/resources/application.properties
+15
-15
src/main/resources/application.properties
with
17 additions
and
16 deletions
+17
-16
src/main/java/com/tarento/upsmf/examsAndAdmissions/ExamsAndAdmissionsApplication.java
+
2
−
1
View file @
c0b23522
...
...
@@ -53,7 +53,8 @@ public class ExamsAndAdmissionsApplication {
.
allowedMethods
(
"GET"
,
"POST"
,
"PUT"
,
"DELETE"
,
"OPTIONS"
)
.
allowedOriginPatterns
(
"*"
)
.
maxAge
(
3600
)
.
allowedHeaders
(
"*"
);
.
allowedHeaders
(
"*"
)
.
exposedHeaders
(
"Authorization"
);
}
@Autowired
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/application.properties
+
15
−
15
View file @
c0b23522
...
...
@@ -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}}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets