Browse Source

Removed incorrect @SecurityRequirement annotation

qdn
CalDescent 3 years ago
parent
commit
020bd00b8f
  1. 2
      src/main/java/org/qortal/api/gateway/resource/GatewayResource.java

2
src/main/java/org/qortal/api/gateway/resource/GatewayResource.java

@ -46,7 +46,6 @@ public class GatewayResource {
@GET @GET
@Path("/site/{name}/{path:.*}") @Path("/site/{name}/{path:.*}")
@SecurityRequirement(name = "apiKey")
public HttpServletResponse getSitePathByName(@PathParam("name") String name, public HttpServletResponse getSitePathByName(@PathParam("name") String name,
@PathParam("path") String inPath) { @PathParam("path") String inPath) {
// Block requests from localhost, to prevent websites/apps from running javascript that fetches unvetted data // Block requests from localhost, to prevent websites/apps from running javascript that fetches unvetted data
@ -56,7 +55,6 @@ public class GatewayResource {
@GET @GET
@Path("/site/{name}") @Path("/site/{name}")
@SecurityRequirement(name = "apiKey")
public HttpServletResponse getSiteIndexByName(@PathParam("name") String name) { public HttpServletResponse getSiteIndexByName(@PathParam("name") String name) {
// Block requests from localhost, to prevent websites/apps from running javascript that fetches unvetted data // Block requests from localhost, to prevent websites/apps from running javascript that fetches unvetted data
Security.disallowLoopbackRequests(request); Security.disallowLoopbackRequests(request);

Loading…
Cancel
Save