Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
036eae49
Commit
036eae49
authored
Apr 06, 2021
by
Daniel Perez
Browse files
Reverting change in swagger
parent
3e7a9fb8
Pipeline
#34664
passed with stages
in 5 minutes and 53 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/server/server.ts
View file @
036eae49
...
...
@@ -78,7 +78,7 @@ export class Server {
this
.
app
.
disable
(
'
x-powered-by
'
);
this
.
app
.
use
(
cors
(
this
.
corsOptions
));
this
.
app
.
options
(
'
*
'
,
cors
());
this
.
app
.
use
(
'
/seistore-svc/api/v3/swagger-ui.html
'
,
swaggerUi
.
serve
,
swaggerUi
.
setup
(
swaggerDocument
));
this
.
app
.
use
(
'
/seistore-svc/api/v3/swagger-ui.html
'
,
swaggerUi
.
serve
,
swaggerUi
.
setup
(
swaggerDocument
));
this
.
app
.
use
((
req
:
express
.
Request
,
res
:
express
.
Response
,
next
:
express
.
NextFunction
)
=>
{
// not required anymore - to verify
...
...
src/shared/response.ts
View file @
036eae49
...
...
@@ -49,9 +49,7 @@ export class Response {
'
Cache-Control
'
:
'
no-cache, no-store, must-revalidate
'
,
'
Content-Security-Policy
'
:
'
script-src
\'
self
\'
\'
'
+
'
sha256-/jDKvbQ8cdux+c5epDIqkjHbXDaIY8RucT1PmAe8FG4=
\'
\'
'
+
'
sha256-Zs5IcTe3sZcSKyWwfnpj4Arf2O14pmf4PcoigyHlHK8=
\'
'
+
'
default-src
\'
self
\'
\'
'
+
'
sha256-BeXIQk2DxxoDrgnnoH683KOnlwQvO0HH1fT4VFQTi8g=
\'
'
,
'
sha256-Zs5IcTe3sZcSKyWwfnpj4Arf2O14pmf4PcoigyHlHK8=
\'
'
,
'
Expires
'
:
'
0
'
,
'
Service-Provider
'
:
Config
.
CLOUDPROVIDER
,
'
Strict-Transport-Security
'
:
'
max-age=31536000; includeSubDomains
'
,
...
...
tests/utest/shared/response.ts
View file @
036eae49
...
...
@@ -76,9 +76,7 @@ export class TestResponseSHD {
'
Cache-Control
'
:
'
no-cache, no-store, must-revalidate
'
,
'
Content-Security-Policy
'
:
'
script-src
\'
self
\'
\'
'
+
'
sha256-/jDKvbQ8cdux+c5epDIqkjHbXDaIY8RucT1PmAe8FG4=
\'
\'
'
+
'
sha256-Zs5IcTe3sZcSKyWwfnpj4Arf2O14pmf4PcoigyHlHK8=
\'
'
+
'
default-src
\'
self
\'
\'
'
+
'
sha256-BeXIQk2DxxoDrgnnoH683KOnlwQvO0HH1fT4VFQTi8g=
\'
'
,
'
sha256-Zs5IcTe3sZcSKyWwfnpj4Arf2O14pmf4PcoigyHlHK8=
\'
'
,
'
Expires
'
:
'
0
'
,
'
Service-Provider
'
:
Config
.
CLOUDPROVIDER
,
'
Strict-Transport-Security
'
:
'
max-age=31536000; includeSubDomains
'
,
...
...
Write
Preview
Supports
Markdown
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