Cross Origin Resource Sharing (CORS)

8 views
Skip to first unread message

har...@gmail.com

unread,
Apr 17, 2018, 10:18:17 PM4/17/18
to JExplorer Forum
Hi,
Is CORS supported in Jexplorer?

Nataliya Rybynok

unread,
Apr 18, 2018, 5:47:18 AM4/18/18
to har...@gmail.com, jexplorer-evaluation
Hello Hari,
Thank you for reaching out!

JExplorer is based on MS Internet Explorer that supports CORS, so JExplorer should support it as well. 

The below simple example confirms that:

import com.teamdev.jexplorer.*;

import javax.swing.*;
import java.awt.*;

public class BrowserSample {
    public static void main(String[] args) {
        BrowserFeatures.enableBrowserMode(BrowserMode.IE11);
        Browser browser = new Browser();

        JFrame frame = new JFrame();

        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.add(browser, BorderLayout.CENTER);
        frame.setSize(800, 600);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);

     }
}

Please note that the following line is required to enable CORS support in JExplorer:

BrowserFeatures.enableBrowserMode(BrowserMode.IE11);

I'd appreciate if you could share some details about your project and the purposes of JExplroer evaluation?
Do you represent a company or a university?

Best regards,
Nataliya Rybynok

Customer Service Manager | TeamDev, Ltd.
Phone +380 57 766-4300
teamdev.com


On Wed, Apr 18, 2018 at 5:18 AM, <har...@gmail.com> wrote:
Hi,
Is CORS supported in Jexplorer?

--
You received this message because you are subscribed to the Google Groups "JExplorer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jexplorer-forum+unsubscribe@teamdev.com.
To view this discussion on the web visit https://groups.google.com/a/teamdev.com/d/msgid/jexplorer-forum/aec6ef53-087c-403d-a491-acd3ed4f6359%40teamdev.com.

Reply all
Reply to author
Forward
0 new messages