File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 45
45
deploy-til-dev :
46
46
name : Deploy til dev-gcp
47
47
needs : bygg-og-push-docker-image
48
- if : github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/amplitude '
48
+ if : github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/amp '
49
49
runs-on : ubuntu-latest
50
50
steps :
51
51
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -26,6 +26,18 @@ export const proxyMedOboToken = (
26
26
) => {
27
27
app . use (
28
28
path ,
29
+ ( req , _ , next ) => {
30
+ // Filtrer ut alle AMP_ cookies
31
+ if ( req . headers . cookie ) {
32
+ const filteredCookies = req . headers . cookie
33
+ . split ( ';' )
34
+ . filter ( ( cookie ) => ! cookie . trim ( ) . startsWith ( 'AMP_' ) )
35
+ . join ( '; ' ) ;
36
+
37
+ req . headers . cookie = filteredCookies ;
38
+ }
39
+ next ( ) ;
40
+ } ,
29
41
respondUnauthorizedIfNotLoggedIn ,
30
42
customMiddleware ? customMiddleware : tomMiddleware ,
31
43
setOnBehalfOfToken ( apiScope ) ,
You can’t perform that action at this time.
0 commit comments