Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
[BUGFIX] Allow all restfull http methods
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanowak committed Jun 10, 2015
1 parent e2a5626 commit cb7a41c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Classes/Netlogix/Cors/Http/Component/CorsComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
namespace Netlogix\Cors\Http\Component;

/* *
* This script belongs to the TYPO3 Flow framework. *
* This script belongs to the TYPO3 Flow package "Netlogix.Cors". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
* The TYPO3 project - inspiring people to share! *
* */

use TYPO3\Flow\Annotations as Flow;
Expand Down Expand Up @@ -39,7 +34,7 @@ public function __construct(array $options = array()) {
* @return void
*/
public function handle(\TYPO3\Flow\Http\Component\ComponentContext $componentContext) {
static $possibleMethods = array('GET', 'POST', 'OPTIONS');
static $possibleMethods = array('GET', 'POST', 'OPTIONS', 'DELETE', 'PUT');

$corsService = new \Netlogix\Cors\Service\CorsService();

Expand Down

0 comments on commit cb7a41c

Please sign in to comment.