diff options
author | Vitaly Takmazov | 2018-12-17 11:58:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-12-17 11:58:50 +0300 |
commit | 8268ccc461608d45bdf60e58ccf49256e8cc993c (patch) | |
tree | fea1863d0ecc24651900b4b4fd1b46f5d08f820e /src/test/java/com | |
parent | 6924024d59b5f86ddff907e13d51057d186c5fef (diff) |
CORS for ActivityPub endpoints
Diffstat (limited to 'src/test/java/com')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index d1cdac8b..5902220f 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -488,6 +488,11 @@ public class ServerTests { .header("Origin", "http://api.example.net")) .andExpect(status().isOk()) .andExpect(header().string("Access-Control-Allow-Origin", "*")); + mockMvc.perform( + get("/u/ugnich") + .header("Origin", "http://api.example.net")) + .andExpect(status().isOk()) + .andExpect(header().string("Access-Control-Allow-Origin", "*")); } @Test |