Skip to content

Commit

Permalink
Merge pull request #244 from bcgov/cors-header-exposed
Browse files Browse the repository at this point in the history
Add cors exposed header for pagination counter
  • Loading branch information
TimCsaky committed Jan 23, 2024
2 parents 7785ab2 + f897cbc commit 26bf9cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/components/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ module.exports = Object.freeze({
/** Tells browsers to cache preflight requests for Access-Control-Max-Age seconds */
maxAge: 600,
/** Set true to dynamically set Access-Control-Allow-Origin based on Origin */
origin: true
origin: true,
/** Configures the Access-Control-Expose-Headers CORS header */
exposedHeaders: 'X-Total-Rows',
},

/** Need to specify valid AWS region or it'll explode ('us-east-1' is default, 'ca-central-1' for Canada) */
Expand Down

0 comments on commit 26bf9cc

Please sign in to comment.