Yii Framework Forum: 404 error on OPTIONS request - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

404 error on OPTIONS request

#1 User is offline   LeoB 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 09-June 14

Posted 07 March 2017 - 02:24 AM

Hi all,
I have an application created by the advanced template, with frontend, backend and console applications.
Now I would like to add rest API to the application and under frontend/controller folder I created a new folder called api where I stored some new controllers that inherits from yii\rest\Controller.
All works fine except when the client make the preflight check with OPTIONS request to the controller and it returns always a 404 error.
Could you help me to understand what's missing in your opinion?
How Yii manage those options requests?

Thank you!!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users