jarnix / nofussframework

nofussframework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a middleware for handling cross domain requests with type "rest"

jarnix opened this issue · comments

OPTIONS requests for "rest" routes are getting routed in the controllers (Router is looking for an "optionsAction" method obviously) so we need a (built-in) middleware for handling OPTIONS requests, using the config.ini for cross-domain configuration.

Every response must include the CORS headers

fixed