Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Vítimas de Crime
Auth
Commits
4591bc28
Commit
4591bc28
authored
1 year ago
by
Leonardo Silveira Berlatto
Browse files
Options
Download
Email Patches
Plain Diff
feat(cors): Corrigindo erro de CORS
parent
5e653346
Pipeline
#11277
passed with stages
in 9 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/kotlin/br/pucrs/ages/victims/auth/config/CorsConfig.kt
+2
-0
...in/kotlin/br/pucrs/ages/victims/auth/config/CorsConfig.kt
with
2 additions
and
0 deletions
+2
-0
src/main/kotlin/br/pucrs/ages/victims/auth/config/CorsConfig.kt
View file @
4591bc28
...
...
@@ -10,6 +10,8 @@ class CorsConfig : WebMvcConfigurer {
override
fun
addCorsMappings
(
registry
:
CorsRegistry
)
{
registry
.
addMapping
(
"/**"
)
.
allowedOrigins
(
"*"
)
.
allowedHeaders
(
"*"
)
.
exposedHeaders
(
"*"
)
.
allowedMethods
(
"GET"
,
"POST"
,
"PUT"
,
"DELETE"
,
"OPTIONS"
,
"HEAD"
,
"TRACE"
,
"CONNECT"
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help