@@ -36,7 +36,7 @@ describe('CORS Headers', () => {
3636 expect ( response . status ) . toBe ( 204 )
3737 expect ( response . headers . get ( 'access-control-allow-origin' ) ) . toBe ( '*' )
3838 expect ( response . headers . get ( 'access-control-allow-methods' ) ) . toBe (
39- 'GET,POST,DELETE,OPTIONS' ,
39+ 'GET,POST,DELETE,OPTIONS,PUT ' ,
4040 )
4141 expect ( response . headers . get ( 'access-control-allow-headers' ) ) . toBe (
4242 'Content-Type' ,
@@ -51,7 +51,7 @@ describe('CORS Headers', () => {
5151 expect ( response . status ) . toBe ( 204 )
5252 expect ( response . headers . get ( 'access-control-allow-origin' ) ) . toBe ( '*' )
5353 expect ( response . headers . get ( 'access-control-allow-methods' ) ) . toBe (
54- 'GET,POST,DELETE,OPTIONS' ,
54+ 'GET,POST,DELETE,OPTIONS,PUT ' ,
5555 )
5656 } )
5757
@@ -63,7 +63,7 @@ describe('CORS Headers', () => {
6363 expect ( response . status ) . toBe ( 204 )
6464 expect ( response . headers . get ( 'access-control-allow-origin' ) ) . toBe ( '*' )
6565 expect ( response . headers . get ( 'access-control-allow-methods' ) ) . toBe (
66- 'GET,POST,DELETE,OPTIONS' ,
66+ 'GET,POST,DELETE,OPTIONS,PUT ' ,
6767 )
6868 } )
6969
0 commit comments