Skip to content

Commit

Permalink
Move CORS handling from platform.sh to app
Browse files Browse the repository at this point in the history
Platform.sh intends it to be this way. The reason this does not work
was a misconfigured Laravel CORS package with the wrong path set.

Drop the previous attempt to do CORS in platform.sh and fix the CORS 
path configuration to cover all requests.
  • Loading branch information
kasperg committed Dec 19, 2023
1 parent d71c65e commit 2a33403
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ web:
- index.php
allow: true
passthru: "/index.php"
headers:
Access-Control-Allow-Origin: "*"

variables:
env:
Expand Down
2 changes: 1 addition & 1 deletion config/cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|
*/

'paths' => ['api/*', 'sanctum/csrf-cookie'],
'paths' => ['/*'],

'allowed_methods' => ['*'],

Expand Down

0 comments on commit 2a33403

Please sign in to comment.