Skip to content

Commit

Permalink
Allow localhost on development stack
Browse files Browse the repository at this point in the history
  • Loading branch information
almunnings committed Feb 22, 2024
1 parent e62f69c commit 5433b71
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions web/sites/default/services.development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ parameters:

# Specify allowed headers, like 'x-allowed-header'.
allowedHeaders:
- 'x-csrf-token'
- 'content-type'
- 'authorization'
- 'origin'
- 'accept'
- 'x-requested-with'
- "x-csrf-token"
- "content-type"
- "authorization"
- "origin"
- "accept"
- "x-requested-with"

# Specify allowed request methods, specify ['*'] to allow all possible ones.
allowedMethods: ['*']
allowedMethods: ["*"]

# Enable CORS for headless development.
allowedOriginsPatterns:
- '#^localhost(:\d+)?$#'
- '#^https?://localhost(:\d+)?$#'
- '#\.lndo\.site(:\d+)?$#'
- '#\.ddev\.site(:\d+)?$#'
- '#\.amazee\.io$#'
Expand Down

0 comments on commit 5433b71

Please sign in to comment.