Needs review
Project:
OAuth2 Server
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2014 at 13:22 UTC
Updated:
6 Feb 2016 at 13:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
garphyHere's a patch that allow OPTIONS requests in the same way Services API does with RESTServer.
Comment #2
garphyActually, oauth2/UserInfo should allow OPTIONS too...
Comment #3
dashohoxha commentedI have solved this problem by intercepting and handling the CORS requests before they go to oauth2_server (or anything else):
But maybe this is not the most standard or flexible approach.
Comment #4
StoraH commentedUpdated patch to work with latest dev.
Comment #5
pjcdawkins commentedThis probably should be
drupal_exit()Comment #6
pjcdawkins commentedComment #7
pjcdawkins commentedAdds the same logic to more page callbacks
Comment #8
pjcdawkins commentedMy only doubt on this is... could it be the responsibility of code that sets CORS headers for OPTIONS requests to exit() afterwards?