Skip to content

Commit

Permalink
Add CORS response header for usage from Strapi (RPB-87)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsteeg committed Feb 9, 2024
1 parent 621dd7f commit 06c004c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/nwbib/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ public static Promise<Result> search(final String q, final String person,
from, size, owner, t, sort, details, location, word, corporation, raw,
format.isEmpty() ? "html" : format);
cacheOnRedeem(cacheId, result, ONE_HOUR);
response().setHeader("Access-Control-Allow-Origin", "*");
return result;
}

Expand Down

0 comments on commit 06c004c

Please sign in to comment.