Comments (7)
能提供稳定复现的例子的么? 欢迎通过 交流群 / 邮件组 进行沟通
from swoft.
@QiiSyhx 提供下使用demo,方便我们定位问题。
from swoft.
/**
* 请求方法
*
* @uses RequestMethod
* @version 2017年08月22日
* @author stelin <[email protected]>
* @copyright Copyright 2010-2016 Swoft software
* @license PHP Version 7.x {@link http://www.php.net/license/3_0.txt}
*/
class RequestMethod
{
/**
* get方法
*/
const GET = 'get';
/**
* post方法
*/
const POST = 'post';
/**
* put方法
*/
const PUT = 'put';
/**
* delete方法
*/
const DELETE = 'delete';
/**
* patch方法
*/
const PATCH = 'patch';
}
现在没有支持的option方法
from swoft.
内部是支持的 只是这里忘了写常量
你直接写字符串 options
也是可以的
from swoft.
@inhere 要不两边用同一份定义
from swoft.
这个理应通过一个 Middleware 来解决,不然的话每个暴露出去的接口都要写一遍 OPTIONS 方法支持,而且 Action 直接支持 OPTIONS 也没法达到 CORS 本身对请求的要求
from swoft.
@huangzhhui 对的,中间件好点
from swoft.
Related Issues (20)
- websocket 启动时报错 The annotation "@AnnotationParser" in class Swoft\WebSocket\Server\Annotation\Parser\MessageMappingParser was never imported.
- weosocket 1006 close HOT 1
- 并发下RPC响应可能互窜
- Bean::SESSION Scope for definition is not undefined
- 官网无法访问? HOT 1
- 用这个框架的phper 得有多倒霉 HOT 3
- redis pool use hscan problem
- 异常Pool error is Swoft\\Connection\\Pool\\AbstractPool::popByChannel(): Send of 5 bytes failed with errno=32 HOT 1
- 组件咨询
- Fatal error: HOT 1
- HTTP控制器中无法调用 websocket 发送消息api
- Swoft\Log\Error:log(30) Run process for process pool fail(Pool error is Create con nection error(Dsn(mysql:dbname=test;host=127.0.0.1) can not to connected!) HOT 1
- 自定义进程,怎么调用task::async呢?2.0.11 HOT 3
- Call to undefined method Swoft\Db\Database::getDatabase()
- ValidatorHelper::validatelength() must be of the type string, int given
- 在swoft中 我想通过后置中间件,对接口内容输出进行加密 ,因为项目不是前后端分离,我需要类似的判断 $response instanceof Json; 求帮助,在线等
- Error install HOT 1
- 定时调度异步任务 HOT 1
- Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in HOT 1
- 守护进程方式启动失败 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swoft.