Message Boards

Give unauthenticated users (other site using javascript) access to the API

thumbnail
Juan Miguel Imaz, modified 2 Years ago.

Give unauthenticated users (other site using javascript) access to the API

New Member Posts: 7 Join Date: 4/30/14 Recent Posts

A colleague is creating a React application and wants to access certain types of Liferay content that I manage.

He wants to access to /o/headless-admin-content/v1.0/sites/xxxxxx/structured-contents?filter=contentStructureId%20eq%xxxxxx&sort=dateCreated%3Adesc

But to do that he needs to be authenticated.

Is there a way to open the API (only at that point) for unauthenticated users?


Note: I have solved the javasript CORS problem (System Settings > Security Tools > Portal Cross-Origin Resource Sharing (CORS))