CORS for API - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: CORS for API (/showthread.php?tid=73574) Pages:
1
2
|
CORS for API - titounnes - 05-10-2019 Hi all... Does anyone feel that CI4 needs CORS management features? I think that feature is needed. RE: CORS for API - kilishan - 05-10-2019 What specifically would you like to see it implement and how do you see it working? RE: CORS for API - titounnes - 05-10-2019 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. RE: CORS for API - kilishan - 05-12-2019 Looks good. I'd be happy to see that in the framework. Any chance you would be up for porting it? RE: CORS for API - prezire - 10-03-2019 (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. RE: CORS for API - RedskyThirty - 07-02-2020 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 RE: CORS for API - kenjis - 03-22-2024 I'm developing CORS filter/class. See https://github.com/codeigniter4/CodeIgniter4/pull/8649 Testing and/or reviewing are welcome. RE: CORS for API - InsiteFX - 03-23-2024 @kenjis, Thank you very much. RE: CORS for API - demyr - 03-23-2024 Great news @kenjis. Thank you RE: CORS for API - titounnes - 03-23-2024 Thank you very much. |