Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1607 from geoadmin/gjn_cookieless_printing
Browse files Browse the repository at this point in the history
Use CORS for print as well
  • Loading branch information
oterral committed Aug 26, 2014
2 parents 5d25b1a + ef17585 commit 8095a45
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
7 changes: 0 additions & 7 deletions apache/app.mako-dot-conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ RewriteRule ^${apache_base_path}/sitemap_(.*)\.xml http:${api_url}/${version}/si
Header merge Cache-Control "no-cache"
</LocationMatch>

# Proxy definitions
ProxyPassMatch ^${apache_base_path}/print/(.*) http:${api_url}/print/$1
<LocationMatch ^${apache_base_path}/print>
Order allow,deny
Allow from all
</LocationMatch>

# Checker definitions (never cache)
<Location ~ "${apache_base_path}/checker$">
ExpiresDefault "access"
Expand Down
1 change: 0 additions & 1 deletion src/index.mako.html
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,6 @@ <h3 class="popover-title">
var pathname = location.pathname.replace(/(index.html)|(mobile.html)/g, '');

module.constant('gaGlobalOptions', {
mapUrl : location.origin + '${apache_base_path}',
apiUrl : location.protocol + '${api_url}',
cachedApiUrl: location.protocol + '${api_url}' + cacheAdd,
resourceUrl: location.origin + pathname + '${versionslashed}',
Expand Down
2 changes: 1 addition & 1 deletion src/js/PrintController.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module.controller('GaPrintController',
function($scope, gaGlobalOptions) {
var printPath = gaGlobalOptions.mapUrl + '/print'
var printPath = gaGlobalOptions.apiUrl + '/print'

$scope.options = {
printConfigUrl: printPath + '/info.json?url=' +
Expand Down

0 comments on commit 8095a45

Please sign in to comment.