Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

question

Rand M avatar image
Rand M asked

"com.amazon.speech.speechlet.servlet.disableRequestSignatureCheck" ?

I notice that the Amazon-provided Java example skills include the following line in their Java Lambda file static initializer block: System.setProperty("com.amazon.speech.speechlet.servlet.disableRequestSignatureCheck", "true"); What does this do? I tried changing it to "false" and removing it and things still seem to work the same... Thank you
alexa skills kitdebugging
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jjaquinta avatar image
jjaquinta answered
There are a couple of things you can turn on and off in the default classes. This is the one where it makes sure that the HTTPS request coming in is signed correctly. When you are using the loopback server test framework you need to turn this off. It doesn't support HTTPS correctly and this check will fail in that environment. When you go into production, you should turn it on for security. For Lambda... it doesn't matter. There is now https check because it isn't being contacted via https.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rand M avatar image
Rand M answered
Thanks, Jo, I appreciate it.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.