Created
July 5, 2013 15:43
-
-
Save xaqq/5935397 to your computer and use it in GitHub Desktop.
Python twisted blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.Resource import Resource | |
class myResource(Resource): | |
def my_render_OPTIONS(self, request): | |
request.setHeader("Allow-Access-Control-Origin", "mydomain.com" | |
request.setHeader("Allow-Access-Control-Methods", "DELETE") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment