mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-23 04:36:50 +00:00
Removed incorrect @SecurityRequirement annotation
This commit is contained in:
@@ -46,7 +46,6 @@ public class GatewayResource {
|
||||
|
||||
@GET
|
||||
@Path("/site/{name}/{path:.*}")
|
||||
@SecurityRequirement(name = "apiKey")
|
||||
public HttpServletResponse getSitePathByName(@PathParam("name") String name,
|
||||
@PathParam("path") String inPath) {
|
||||
// Block requests from localhost, to prevent websites/apps from running javascript that fetches unvetted data
|
||||
@@ -56,7 +55,6 @@ public class GatewayResource {
|
||||
|
||||
@GET
|
||||
@Path("/site/{name}")
|
||||
@SecurityRequirement(name = "apiKey")
|
||||
public HttpServletResponse getSiteIndexByName(@PathParam("name") String name) {
|
||||
// Block requests from localhost, to prevent websites/apps from running javascript that fetches unvetted data
|
||||
Security.disallowLoopbackRequests(request);
|
||||
|
Reference in New Issue
Block a user