Skip to content

Commit

Permalink
Merge pull request #1 from Flowpack/task/compatibility
Browse files Browse the repository at this point in the history
TASK: Adjust version constraints
  • Loading branch information
markusguenther authored Aug 20, 2021
2 parents cbaffa9 + 5e5326e commit 3250d51
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Fully featured CORS HTTP component (a.k.a. middleware) for Flow framework to allow "cross-domain" requests.


```
⚡️ Warning
This package is not working with version 7.0 and higher of the Neos/Flow framework.
In version 7.0 we introduced PSR-15 Middlewares and it is possible to use other PHP libraries instead.
For instance https://github.com/tuupola/cors-middleware
```


## Background

This package is a implementation of a CORS middleware for Cross-Origin Resource Sharing (see https://developer.mozilla.org/en-US/docs/Glossary/CORS).
Expand Down Expand Up @@ -102,4 +113,4 @@ Flowpack:
# Debugging flag adds additional logging to System.log to debug server-side CORS issues.
#
debug: false
```
```
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "CORS HTTP component (middleware) for Neos Flow",
"license": "LGPL-3.0+",
"require": {
"neos/flow": "*"
"neos/flow": "^4.0 || ^5.0 || ^6.0"
},
"autoload": {
"psr-4": {
Expand All @@ -16,4 +16,4 @@
"Flowpack\\Cors\\Tests\\": "Tests"
}
}
}
}

0 comments on commit 3250d51

Please sign in to comment.