Cross-Domain pre-flight OPTIONS forbidden Cross-Domain pre-flight OPTIONS forbidden codeigniter codeigniter

Cross-Domain pre-flight OPTIONS forbidden


I found an answer in another Stack Overflow thread and it works!

You need to detect method and if it's OPTIONS then exit php by die()!

Credit: https://stackoverflow.com/a/19310265/3679394