Produced by Araxis Merge on 4/27/2018 2:59:09 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | v2.0_Sprint_15_Build_5.zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\filter | CORSFilter.java | Tue Apr 24 14:49:57 2018 UTC |
| 2 | v2.0_Sprint_15_Build_5..zip\v2.0_Sprint_15_Build_5\Unredacted\ARS_Backend\ars_app\src\main\java\gov\va\med\ars\filter | CORSFilter.java | Thu Apr 26 15:53:50 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 86 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | /** | |
| 2 | * | |
| 3 | */ | |
| 4 | package go v.va.med.a rs.filter; | |
| 5 | ||
| 6 | import jav a.io.IOExc eption; | |
| 7 | ||
| 8 | import jav ax.servlet .FilterCha in; | |
| 9 | import jav ax.servlet .ServletEx ception; | |
| 10 | import jav ax.servlet .http.Http ServletReq uest; | |
| 11 | import jav ax.servlet .http.Http ServletRes ponse; | |
| 12 | ||
| 13 | import org .springfra mework.web .filter.On cePerReque stFilter; | |
| 14 | ||
| 15 | /** | |
| 16 | * @author PI I
|
|
| 17 | * | |
| 18 | */ | |
| 19 | public cla ss CORSFil ter extend s OncePerR equestFilt er { | |
| 20 | ||
| 21 | /* | |
| 22 | * (non-Java doc) | |
| 23 | * | |
| 24 | * @see | |
| 25 | * org.sprin gframework .web.filte r.OncePerR equestFilt er#doFilte rInternal( | |
| 26 | * javax.ser vlet.http. HttpServle tRequest, | |
| 27 | * javax.ser vlet.http. HttpServle tResponse, javax.ser vlet.Filte rChain) | |
| 28 | * / | |
| 29 | pr otected vo id doFilte rInternal( HttpServle tRequest r eq, HttpSe rvletRespo nse res, F ilterChain chain) | |
| 30 | throws ServletEx ception, I OException { | |
| 31 | res. setHeader( "Access-Co ntrol-Allo w-Origin", "*"); | |
| 32 | res. setHeader( "Access-Co ntrol-Allo w-Methods" , "GET,POS T"); | |
| 33 | res. setHeader( "Access-Co ntrol-Max- Age", "360 0"); | |
| 34 | res. setHeader( "Access-Co ntrol-Allo w-Headers" , "X-PINGO THER, Cont ent-Type, X-Requeste d-With, ac cept, Orig in," | |
| 35 | + "Acces s-Control- Request-Me thod, Acce ss-Control -Request-H eaders,Aut horization "); | |
| 36 | res. addHeader( "Access-Co ntrol-Expo se-Headers ", "xsrf-t oken"); | |
| 37 | ||
| 38 | if ( "OPTIONS". equals(req .getMethod ())) { | |
| 39 | res.se tStatus(Ht tpServletR esponse.SC _OK); | |
| 40 | } el se { | |
| 41 | chain. doFilter(r eq, res); | |
| 42 | } | |
| 43 | } | |
| 44 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.