Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OM2M » CORS issue
CORS issue [message #1783135] Thu, 08 March 2018 12:15
Muhammad Kamran is currently offline Muhammad KamranFriend
Messages: 18
Registered: November 2017
Junior Member
When calling rest api from client running on different port, facing following issue

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access. The response had HTTP status code 400.

Server: http://localhost:8080
Client: http://localhost:80

Checked response headers in Postman, No "access-control-allow-headers" present in response

How to add these headers in Om2m source code?

Previous Topic:MQTT: Error in creating container/content instance on MN-CSE/IN-CSE
Next Topic:Create AE via MQTT Binding
Goto Forum:

Current Time: Tue Nov 13 22:38:01 GMT 2018

Powered by FUDForum. Page generated in 0.02065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top