-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Description
Sébastien Deleuze opened SPR-12699 and commented
The purpose of this issue is adding CSP 1.1 frame-ancestors support in order to be able to enable Iframe based transports when an origin check is enabled.
X-Frame-Options: ALLOW-FROM uri is only supported by IE and Firefox. Chrome and Safari will support a similar functionality thanks to CSP 1.1 frame-ancestors. Currently, you still need to add flag to Chrome to enable frame-ancestors support (they seem to wait CSP 1.1 final to be published to make it available by default), and it is not yet supported in Safari. So until Safari and Chrome support it, we have to disable Iframe based transports when an origin check is specified by the user.
We should implement this when CSP 1.1 will supported by Safari and Chrome (I hope in 4.2 timeframe).
Issue Links:
- AbstractSockJsService.checkAndAddCorsHeaders fails for same origin requests when setAllowedOrigins is set [SPR-12660] #17260 AbstractSockJsService.checkAndAddCorsHeaders fails for same origin requests when setAllowedOrigins is set