Browse Source

Add title to SockJS iFrames for accessibility compliance

Closes gh-29594
pull/29935/head
Aashay Chapatwala 3 years ago committed by Sam Brannen
parent
commit
332d2a36bb
  1. 3
      spring-websocket/src/main/java/org/springframework/web/socket/sockjs/support/AbstractSockJsService.java

3
spring-websocket/src/main/java/org/springframework/web/socket/sockjs/support/AbstractSockJsService.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2021 the original author or authors.
* Copyright 2002-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -620,6 +620,7 @@ public abstract class AbstractSockJsService implements SockJsService, CorsConfig @@ -620,6 +620,7 @@ public abstract class AbstractSockJsService implements SockJsService, CorsConfig
"<head>\n" +
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n" +
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" +
" <title>SocketJS iframe</title>\n" +
" <script>\n" +
" document.domain = document.domain;\n" +
" _sockjs_onload = function(){SockJS.bootstrap_iframe();};\n" +

Loading…
Cancel
Save