You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I click the convert button, I get the error message "{message: Forbidden}"
I check the URL, I found the URL is not correct. The Submit URL is missing the stage.
The code in the index.html:
Enter a URL of a Word Doc (.doc) file to convert:
The frondend URL:
https://*.execute-api.us-east-1.amazonaws.com/Prod
The Submit URL:
https://.execute-api.us-east-1.amazonaws.com/api/convert?document_url=https%3A%2F%2Fwww.puresec.io%2Fhubfs%2Fdocument.doc
The correct URL:
https://***.execute-api.us-east-1.amazonaws.com/Prod/api/convert?document_url=https%3A%2F%2Fwww.puresec.io%2Fhubfs%2Fdocument.doc
The text was updated successfully, but these errors were encountered:
Because there are two stage, One is Prod, another one is Stage. So if I change the index.html code like that:
Added "Prod//' before the api/convert, it is worked.
So, when you visit https://XXXXXX.execute-api.us-west-2.amazonaws.com/Prod/ and submit the form, it will POST data to https://XXXXXX.execute-api.us-west-2.amazonaws.com/Prod/api/convert
As far as I know, relative paths supported by all modern browsers. @mendickxiao What is your browser name/version?
I click the convert button, I get the error message "{message: Forbidden}"
I check the URL, I found the URL is not correct. The Submit URL is missing the stage.
The code in the index.html:
Enter a URL of a Word Doc (.doc) file to convert:The frondend URL:
https://*.execute-api.us-east-1.amazonaws.com/Prod
The Submit URL:
https://.execute-api.us-east-1.amazonaws.com/api/convert?document_url=https%3A%2F%2Fwww.puresec.io%2Fhubfs%2Fdocument.doc
The correct URL:
https://***.execute-api.us-east-1.amazonaws.com/Prod/api/convert?document_url=https%3A%2F%2Fwww.puresec.io%2Fhubfs%2Fdocument.doc
The text was updated successfully, but these errors were encountered: