fix: spaceapi-proxy rewriterule prefix
This commit is contained in:
parent
bcc4ceab62
commit
f6f3aa3439
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,7 @@ window.onload = (ev) => {
|
|||
{%- if 'spaceapi' in space %}
|
||||
{%- if htaccess_spaceapi_proxy %}
|
||||
{%- set proto, url = space.spaceapi.split('://', 1) %}
|
||||
{%- set apiurl = htaccess_spaceapi_proxy + '/' + proto + '/' + url %}
|
||||
{%- set apiurl = baseurl + htaccess_spaceapi_proxy + '/' + proto + '/' + url %}
|
||||
{%- else %}
|
||||
{%- set apiurl = space.spaceapi %}
|
||||
{%- endif %}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
DirectoryIndex index.var index.html
|
||||
|
||||
RewriteEngine on
|
||||
RewriteRule ^.well-known/spaceapi.json$ spaceapi.json [L]
|
||||
{% if htaccess_spaceapi_proxy %}
|
||||
# SpaceAPI proxy service workaround for missing CORS headers
|
||||
{%- for space in hackerspaces %}
|
||||
|
|
Loading…
Add table
Reference in a new issue