Welcome Guest, Not a member yet? Register   Sign In
CORS for API
#1

(This post was last modified: 05-10-2019, 10:01 AM by titounnes.)

Hi all...
Does anyone feel that CI4 needs CORS management features?
I think that feature is needed.
Reply
#2

What specifically would you like to see it implement and how do you see it working?
Reply
#3

(This post was last modified: 05-10-2019, 03:37 PM by titounnes.)

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.
Reply
#4

Looks good. I'd be happy to see that in the framework. Any chance you would be up for porting it?
Reply
#5

(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.
https://github.com/barryvdh/laravel-cors, this is for consideration.

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!
Reply
#6

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
Reply
#7

I'm developing CORS filter/class.
See https://github.com/codeigniter4/CodeIgniter4/pull/8649
Testing and/or reviewing are welcome.
Reply
#8

@kenjis, Thank you very much.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#9

Great news @kenjis. Thank you
Reply
#10

Thank you very much.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB