Skip to content

Commit

Permalink
Allow CORS for swagger.json
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausIllmayer committed Oct 23, 2024
1 parent af4e0a7 commit c0d13af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,9 @@ RewriteRule ^favicon.ico$ custom-favicon.ico [L]
Deny from all
</IfModule>
</Files>

<Files "swagger.json">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</Files>
1 change: 1 addition & 0 deletions dockerfiles/Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ COPY dockerfiles/config/000-default.conf /etc/apache2/sites-available/000-defaul

RUN a2enmod rewrite
RUN a2enmod expires
RUN a2enmod headers

# set ServerName & redirect error log to stderr for docker logs
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
Expand Down

0 comments on commit c0d13af

Please sign in to comment.