Anand Jagtap
Anand Jagtap

Reputation: 85

While generating Bearer token getting "This resource must only be accessed over HTTPS. It was incorrectly accessed using HTTP"

We have http server for our dev / test environments. Both schemas are on same servers with different port numbers. Recently we have created few REST APIs. We get expected result from DEV environment.

On test environment, if roles and privilege are not applied it works. I mean I can successfully use API.

But once applied, I'm getting below mentioned error while genrating token on Postman.

"Error-Reason: error="URL"; error_description*=UTF-8''This%20resource%20must%20only%20be%20accessed%20over%20HTTPS.%20It%20was%20incorrectly%20accessed%20using%20HTTP"

For start I checked,

Can help, what else I shall need to check?

Upvotes: 0

Views: 309

Answers (1)

mikee
mikee

Reputation: 551

It would appear that the verifySSL setting is what controls this.

https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-rest-enabled-sql#:~:text=By%20default%20the%20functionality%20is%20only%20available%20over,over%20HTTPS.%20It%20was%20incorrectly%20accessed%20using%20HTTP%22.

Have you restarted ORDS to ensure the setting is taking effect?

Upvotes: 2

Related Questions