CORS for API |
What specifically would you like to see it implement and how do you see it working?
Maybe, a setting that makes it easy for developers to set such as allowing cross origin when using API. We just set parameter true with a default value of false.
https://github.com/barryvdh/laravel-cors, this is for consideration.
Looks good. I'd be happy to see that in the framework. Any chance you would be up for porting it?
(05-10-2019, 03:28 PM)titounnes Wrote: Maybe, a setting that makes it easy for developers to set such as allowing cross origin when using API. We just set parameter true with a default value of false. There could be a couple of possibilities. This would be better handled by 3rd-party vendors similar to the link you just provided.
Long live CodeIgniter!
For people who waste time with this problematic, I created a library.
It's possible that it doesn't work yet in certain cases, so don't hesitate to notify me if you encounter errors. I haven't documented the code but I think that it's simple enough to set up. => https://github.com/RedskyThirty/codeigniter4-cors
I'm developing CORS filter/class.
See https://github.com/codeigniter4/CodeIgniter4/pull/8649 Testing and/or reviewing are welcome. |
Welcome Guest, Not a member yet? Register Sign In |