Skip to content

Commit

Permalink
Issue 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Car committed Feb 7, 2020
1 parent 65a3862 commit e778a34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyldapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from pyldapi.profile import Profile
from pyldapi.helpers import setup

__version__ = '3.4'
__version__ = '3.5'

__all__ = [
'Renderer',
Expand Down
4 changes: 4 additions & 0 deletions pyldapi/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def __init__(self,
self.headers['Link'] = self._make_header_link_tokens()
self.headers['Link'] = self.headers['Link'] + ', ' + self._make_header_link_list_profiles()

# Issue 18 - https://github.com/RDFLib/pyLDAPI/issues/18
# Enable CORS for browser client consumption
self.headers['Access-Control-Allow-Origin'] = '*'

#
# getting request's preferences
#
Expand Down

0 comments on commit e778a34

Please sign in to comment.